Module: Middleman::Templates
- Defined in:
- lib/middleman-core/templates.rb
Overview
Templates namespace
Defined Under Namespace
Classes: Base, Default, Empty, Html5, Local, Mobile, Smacss
Class Method Summary collapse
-
.register(name = nil, klass = nil) ⇒ Hash
(also: registered)
Get list of registered templates and add new ones.
Class Method Details
.register(name = nil, klass = nil) ⇒ Hash Also known as: registered
18 19 20 21 22 |
# File 'lib/middleman-core/templates.rb', line 18 def register(name=nil, klass=nil) @_template_mappings ||= {} @_template_mappings[name] = klass if name && klass @_template_mappings end |