Module: Plate::Engine
- Included in:
- Plate
- Defined in:
- lib/plate/engine.rb
Instance Method Summary collapse
-
#asset_engines ⇒ Object
All engines that have been registered for markup templating.
-
#register_asset_engine(extension, klass) ⇒ Object
Register a new asset engine.
-
#register_template_engine(extension, klass) ⇒ Object
Register a new templating engine.
-
#template_engines ⇒ Object
All engines that have been registered for markup templating.
Instance Method Details
#asset_engines ⇒ Object
All engines that have been registered for markup templating
4 5 6 |
# File 'lib/plate/engine.rb', line 4 def asset_engines @engines[:assets].dup end |
#register_asset_engine(extension, klass) ⇒ Object
Register a new asset engine.
9 10 11 12 |
# File 'lib/plate/engine.rb', line 9 def register_asset_engine(extension, klass) @engines[:assets] ||= {} @engines[:assets][extension] = klass end |
#register_template_engine(extension, klass) ⇒ Object
Register a new templating engine.
15 16 17 18 |
# File 'lib/plate/engine.rb', line 15 def register_template_engine(extension, klass) @engines[:templates] ||= {} @engines[:templates][extension] = klass end |
#template_engines ⇒ Object
All engines that have been registered for markup templating
21 22 23 |
# File 'lib/plate/engine.rb', line 21 def template_engines @engines[:templates].dup end |