Is it possible you have the :escape_html Haml option set? Does it work if
you use "!=" instead of "="?

On Sat, Jan 23, 2010 at 8:29 PM, Peter <[email protected]> wrote:

> Hi
>
> I'm an haml n00b, and have spent like 2 hours working on this problem.
> The layout.haml works perfectly. But the content in the "yield"  does
> not. Instead of </form>, it displays &lt;/form&gt; in the browser. Any
> idea?
>
> Thank you!
>
>
> == layout.haml ==
> #content= yield
>
> == view.haml ==
> %form{:action=>"/u/post", :method=>"post"}
>
> == application.rb ==
> get '/view' do
>  haml :view
> end
>
> == on browser: http://localhost:8080/view ==
> <div id='content'>
>        &lt;form action='/u/post' method='post'&gt;
>        &lt;/form&gt;
> </div>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

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

Reply via email to