Sha256: 56ad4d66edbfef7184db50fbdaf2da16dae6328dc7a7a592fab09421d1a65e7b

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 Bytes

Contents

require 'digest/md5'

module Owl
  module CMS
    module Helpers
      include Sinatra

      module Render

        def render_page(path)
          # Grab the page & render it.
          page = Owl::Lib::Page.new(path, self)
          page.html
        end

        def partial(path, locals={})
          partial = Owl::Lib::Partial.new(path)
          haml(partial.raw, {}, locals)
        end

      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
owl-cms-0.1.5 core/helpers/render.rb
owl-cms-0.1.3 core/helpers/render.rb
owl-cms-0.1.2 core/helpers/render.rb
owl-cms-0.1.1 core/helpers/render.rb
owl-cms-0.1.0 core/helpers/render.rb