Module: MHaml::Config
- Included in:
- MHaml
- Defined in:
- lib/mhaml/config.rb
Overview
Change config options in an initializer:
MHaml.template_extension = ‘mhaml’
Or in a block:
MHaml.configure do |config|
config.template_extension = 'mhaml'
end
Instance Attribute Summary collapse
-
#action_view_key ⇒ Object
Returns the value of attribute action_view_key.
-
#template_base_path ⇒ Object
Returns the value of attribute template_base_path.
-
#template_extension ⇒ Object
Returns the value of attribute template_extension.
-
#template_namespace ⇒ Object
Returns the value of attribute template_namespace.
Instance Method Summary collapse
Instance Attribute Details
#action_view_key ⇒ Object
Returns the value of attribute action_view_key.
13 14 15 |
# File 'lib/mhaml/config.rb', line 13 def action_view_key @action_view_key end |
#template_base_path ⇒ Object
Returns the value of attribute template_base_path.
13 14 15 |
# File 'lib/mhaml/config.rb', line 13 def template_base_path @template_base_path end |
#template_extension ⇒ Object
Returns the value of attribute template_extension.
13 14 15 |
# File 'lib/mhaml/config.rb', line 13 def template_extension @template_extension end |
#template_namespace ⇒ Object
Returns the value of attribute template_namespace.
13 14 15 |
# File 'lib/mhaml/config.rb', line 13 def template_namespace @template_namespace end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
15 16 17 |
# File 'lib/mhaml/config.rb', line 15 def configure yield self end |