Class: Blacksmith::HTMLForge

Inherits:
Object
  • Object
show all
Defined in:
lib/blacksmith/html_forge.rb

Class Method Summary collapse

Class Method Details

.execute(font) ⇒ Object



3
4
5
6
7
# File 'lib/blacksmith/html_forge.rb', line 3

def execute(font)
  File.open(font.html_path, 'w+') do |file|
    file.write(html_template.result(binding))
  end
end