Class: Bemer::TemplateList
- Inherits:
-
DefaultTemplateList
- Object
- DefaultTemplateList
- Bemer::TemplateList
- Defined in:
- lib/bemer/template_list.rb
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(view, path, cached: false, prefix: true, **options) ⇒ TemplateList
constructor
A new instance of TemplateList.
Constructor Details
#initialize(view, path, cached: false, prefix: true, **options) ⇒ TemplateList
Returns a new instance of TemplateList.
7 8 9 10 11 12 |
# File 'lib/bemer/template_list.rb', line 7 def initialize(view, path, cached: false, prefix: true, **) super(view, cached) @options = @path = build_full_path(prefix, path) end |
Instance Method Details
#compile ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/bemer/template_list.rb', line 14 def compile super add_default_templates view.render(template: template, locals: { ** }) ensure remove_template_catalog! end |