About

This is a framework-agnostic template inheritance engine from Rango.

Usage


require "template-inheritance"

TemplateInheritance::Template.paths << File.expand_path("..", __FILE__)

template = TemplateInheritance::Template.new("site/post.html.haml")
template.render(post: post)

Haml Extensions


Tilt::HamlTemplate.options[:default_attributes] = {form: {method: "post"}}