|
@@ -18,7 +18,7 @@ module Petrify |
|
|
fn = File.join(dir, 'index.html') |
|
|
fn = File.join(dir, 'index.html') |
|
|
|
|
|
|
|
|
# https://stackoverflow.com/questions/6125265/using-layouts-in-haml-files-independently-of-rails |
|
|
# https://stackoverflow.com/questions/6125265/using-layouts-in-haml-files-independently-of-rails |
|
|
html = Haml::Engine.new(File.read(@@layout_fn)).render do |
|
|
|
|
|
|
|
|
html = Haml::Engine.new(File.read(@@layout_fn)).render(Object.new, locals) do |
|
|
Haml::Engine.new(File.read(File.join(@@views_dir, "#{template}.haml"))).render(Object.new, locals) |
|
|
Haml::Engine.new(File.read(File.join(@@views_dir, "#{template}.haml"))).render(Object.new, locals) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|