lib/generators/zoo/layout/templates/layout.html.haml in zoo-generators-0.1.0 vs lib/generators/zoo/layout/templates/layout.html.haml in zoo-generators-0.1.1
- old
+ new
@@ -2,19 +2,19 @@
%html
%head
%title
= yield(:title) || "Untitled"
- %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
+ %meta{"http-equiv"=>"Content-Type", content: "text/html; charset=utf-8"}/
= stylesheet_link_tag "<%= file_name %>"
= javascript_include_tag :defaults
= csrf_meta_tag
= yield(:head)
%body
#container
- flash.each do |name, msg|
- = content_tag :div, msg, :id => "flash_#{name}"
+ = content_tag :div, msg, id: "flash_#{name}"
- if show_title?
%h1= yield(:title)
= yield