Method: Amy#apply_keywords_to_template

Defined in:
lib/staticweb.rb

#apply_keywords_to_templateObject

~ return list ~ end



282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# File 'lib/staticweb.rb', line 282

def apply_keywords_to_template
	make_keyword_file_if_web_exists_but_keyword_doesnt
	list = []
	find_template_files_that_match_mapping.each_with_index do |template,i|
		txt = template.file_content.to_s.clone
		
		find_keyword_files_that_match_mapping[i].each do |keyword|
				
				txt.gsub!(/\[#{keyword.keyword_name}\]/, keyword.keyword_file_content.to_s) 
			
		end
	list << PageBuilder.new(find_web_files_that_match_mapping[i].file_name, find_web_files_that_match_mapping[i].file_path, txt)
	end
return list
end