Method: Zafu::Parser.get_template_text
- Defined in:
- lib/zafu/parser.rb
.get_template_text(path, helper, base_path = nil) ⇒ Object
Retrieve the template text in the current folder or as an absolute path. This method is used when ‘including’ text
42 43 44 45 46 |
# File 'lib/zafu/parser.rb', line 42 def get_template_text(path, helper, base_path=nil) res = helper.send(:get_template_text, path, base_path) return [parser_error("template '#{path}' not found", 'include'), nil, nil] unless res res end |