Module: TemplateHelper

Defined in:
app/helpers/template_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_templatesObject



2
3
4
5
6
7
# File 'app/helpers/template_helper.rb', line 2

def render_templates
  templates = load_templates.collect do |t|
    "<script type='text/template' id='#{t[:id]}'>#{t[:content]}</script>"
  end
  raw(templates.join)
end