Hi.

I have next code.

# begin
require 'haml'

template = %{
------%html
--------%head
--------%body
}.strip

Haml::Engine.new(template).render
# end

It works fine and render the template.

But if I add the %title tag inside the %head...

# begin
require 'haml'

template = %{
------%html
--------%head
----------%title
--------%body
}.strip

Haml::Engine.new(template).render
# end

...I get the error: "Inconsistent indentation: 10 spaces were used for
indentation, but the rest of the document was indented using 8
spaces."

What is the problem of this error? How can I resolve it?

Thanks.

Debian GNU/Linux 5.0.3;
Ruby 1.9.2;
Haml 2.2.17.

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to h...@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to