lib/vitrine.rb in vitrine-0.0.16 vs lib/vitrine.rb in vitrine-0.0.17
- old
+ new
@@ -90,11 +90,9 @@
# Auto-pick the template engine out of the extension
template_engine = File.extname(template_path).gsub(/^\./, '')
render(template_engine, File.read(template_path), :layout => get_layout, :locals => locals)
end
-
-
def get_layout
layouts = Dir.glob(File.join(settings.views, 'layout.*'))
layouts.any? ? :layout : false
end
\ No newline at end of file