Sha256: 672c0630e2ba05dc60f595bf132197442f7b652b0ecfee31c53d02ff9be744b4
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
h1. About This is a framework-agnostic template inheritance engine from Rango. h1. Usage <pre> require "template-inheritance" TemplateInheritance::Template.paths << File.expand_path("..", __FILE__) template = TemplateInheritance::Template.new("site/post.html.haml") template.render(post: post) </pre> h2. In Padrino <pre> require "template-inheritance/adapters/padrino" class Foo & Padrino::Application register TemplateInheritance::Rendering end </pre> h1. Haml Extensions <pre> Tilt::HamlTemplate.options[:default_attributes] = {form: {method: "post"}} </pre>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
template-inheritance-0.3 | README.textile |