Method: Amy#apply_config_to_template
- Defined in:
- lib/staticweb.rb
#apply_config_to_template ⇒ Object
299 300 301 302 303 304 305 306 307 308 309 |
# File 'lib/staticweb.rb', line 299 def apply_config_to_template list = [] apply_keywords_to_template.each_with_index do |template,i| txt = template.html.clone find_config_files_that_match_mapping[i].each do |config| txt.gsub!(/\[#{config.config_setting_name}\]/, config.config_setting_value) end list << PageBuilder.new(template.file_name, template.file_path, txt) end return list end |