Module: BabyErubis

Defined in:
lib/baby_erubis.rb,
lib/baby_erubis/rails.rb

Overview

Yet another eRuby implementation, based on Erubis. See github.com/kwatch/baby_erubis/tree/ruby for details.

Example:

template = BabyEruibs::Html.new.from_str <<'END', __FILE__, __LINE__+1
<% for item in @items %>
- item = <%= item %>
<% end %>
END
print template.render(:items=>['A', 'B', 'C'])
## or
template = BabyErubis::Html.new.from_file('example.html.erb', 'utf-8')
print template.render(:items=>['A', 'B', 'C'])

Defined Under Namespace

Modules: HtmlEscaper Classes: HtmlTemplate, HtmlTemplateContext, RailsTemplate, Template, TemplateContext, TemplateError

Constant Summary collapse

RELEASE =
'$Release: 2.1.0 $'.split(' ')[1]
Text =

for shortcut

Template
Html =

for shortcut

HtmlTemplate