Sha256: ee3a13c551641364e22ac431d9e273934525e8faf2ac1d688fe3ade6e4627c33

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

require 'brite/page'

module Brite

  # Post class
  class Post < Page

    def default_layout
      site.defaults.postlayout
    end

    #def to_contextual_attributes
    #  { 'site' => site.to_h, 'post' => to_h }
    #end

=begin
    #
    def render(content=nil)
      attributes = to_contextual_attributes
      #attributes['page']['content'] = content if content

      output = parts.map{ |part| part.render(stencil, attributes) }.join("\n")

      # content
      @content = output

      if layout
        output = site.lookup_layout(layout).render(output)
      end
      output
    end
=end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brite-0.5 lib/brite/post.rb