No commit activity in last 3 years
No release in over 3 years
This rubygem does not have a description or summary.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

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)

In Padrino

require "template-inheritance/adapters/padrino"

class Foo & Padrino::Application
  register TemplateInheritance::Rendering
end

Also if you are on Padrino Git HEAD or Padrino 0.9.29, you have to set SKIP_PADRINO_RENDERING to true before Padrino is loaded. It’s because of a bug in Padrino.

Haml Extensions

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