HAML in Rails 3 produces only doctype html -


hey guys running problem:

if use this:

!!! xml !!! %html   %head     %title myspace   %body     %h1 international space station     %p sign guestbook 

i source:

<!doctype html> <html>   <head>     <title>myspace</title>   </head>   <body>      <h1>i international space station</h1>     <p>sign guestbook</p>   </body> </html> 

thanks :)

according haml documentation, xhtml default doctype apart rails 3 uses html5. can set :format option override.

in config/environment.rb:

haml::template.options[:format] = :xhtml 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -