Method: Cuca::Generator::View#viewtext_p
- Defined in:
- lib/cuca/generator/view.rb
#viewtext_p(template) ⇒ Object
Normally you have your view (the template) within a separate file. Nevertheless you can passing as a string to this function.
69 70 71 |
# File 'lib/cuca/generator/view.rb', line 69 def viewtext_p(template) ERB.new(template).result(GeneratorContext.new(get_assigns, self).get_bindings) end |