Sha256: 36208cda011089b9734a44cede9ca93e31ac36a35cdef20c6a9dab0d50fb1043
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 Bytes
Contents
class SimpleStyle4 < Oregano::Template LOCATION = Pathname(__FILE__).dirname def tangle(body, metadata) index_page = Hexp.parse(LOCATION.join('public', 'index.html').read) index_page .replace('h1') {|title| title.set_children(metadata['title']) } .replace('#content') {|main| body } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oregano-0.1.0 | templates/simple_style_4/template.rb |