Method: Inversion::Template.configure
- Defined in:
- lib/inversion/template.rb
.configure(config) ⇒ Object
Configure the templating system.
154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/inversion/template.rb', line 154 def self::configure( config ) if config Inversion.log.debug "Merging config %p with current config %p" % [ config, self.config ] merged_config = DEFAULT_CONFIG.merge( config ) self.template_paths = Array( merged_config.delete(:template_paths) ) self.config = merged_config else defaults = DEFAULT_CONFIG.dup self.template_paths = defaults.delete( :template_paths ) self.config = defaults end end |