Method: Wing::Generator#html
- Defined in:
- lib/wing.rb
#html ⇒ Object
119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/wing.rb', line 119 def html replacements = { "BODY" => body, "TITLE" => title } template = File.read(File.join(TEMPLATES, "main.html")) replacements.each do |key, value| template.gsub!("[#{key}]", value) end template end |