Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

41 Commits

Repository files navigation

Minimal::Template is an experimental, minimalistic templating engine inspired by Markaby & Erector but much smaller (~60 loc) and targeted at Rails 3.

# views/foo/bar.rb
module Foo
class Bar < Minimal::Template
def content
html do
head
body do
h1 'plain'
p local
end
end
end
end
end
# somewhere else
view = ActionView::Base.new('path/to/your/views')
view.render(:file => 'foo/bar', :locals => { :local => 'local' })
# => '<html><head></head><body><h1>plain</h1><p>local</p></body></html>'

About

Experimental, minimal templating engine inspired by Markaby & Erector but much smaller and targeting Rails 3

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages