Skip to content

Commit

Permalink
use haml configuration option to trigger html5 doctype
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmuhl committed Oct 8, 2009
1 parent 2ff2549 commit 0c9aef2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
@@ -1,4 +1,4 @@
<!DOCTYPE html>
!!!
%html{html_attrs}
%head
%meta{"http-equiv"=>"Content-type", :content=>"text/html;charset=utf-8"}/
Expand Down
4 changes: 3 additions & 1 deletion config/environment.rb
Expand Up @@ -75,4 +75,6 @@
inflect.uncountable 'config'
end
end
end
end

Haml::Template.options[:format] = :html5
4 changes: 3 additions & 1 deletion lib/generators/instance/templates/instance_environment.rb
Expand Up @@ -75,4 +75,6 @@
inflect.uncountable 'config'
end
end
end
end

Haml::Template.options[:format] = :html5

0 comments on commit 0c9aef2

Please sign in to comment.