Sha256: c9fdedbb8e61c11bb6d2059a6e888f65d8328f5ea33d8b646358a6a21ce43ca1
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
module Brite # A Part is the section of a page. Pages can be segmented into # parts using the '--- FORMAT' notation. # class Part # Markup format (html, rdoc, markdown, textile) attr :format # Body of text as given in the part. attr :text # def initialize(text, format=nil) @format = format @text = text end # def render(type, attributes) template_engine.render(type, format, text, attributes) end # def template_engine TemplateEngine end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brite-0.5 | lib/brite/part.rb |