This looks like it might be a Haml version other than the most recent. Are
you sure you're using version 2.0.6?

On Sat, Jan 3, 2009 at 2:45 AM, giuseb <[email protected]> wrote:

>
> Ok, so, the following is what I get if I use EITHER erb in rails 2.2.2
> or haml in rails 2.1.0, while rendering a single tabnav and a single
> <h1> tag (see original post). This is the expected behavior:
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> <head>
>  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
>  <title>Posts: index</title>
>  <link href="/stylesheets/scaffold.css?1230833799" media="screen"
> rel="stylesheet" type="text/css" />
> </head>
> <body>
>
> <style>
> .main_tabnav {
>        color: #000;
>        border-bottom: 2px solid black;
>        margin: 13px 0px 0px 0px;
>        padding: 0px;
>        z-index: 1;
>        padding-left: 10px }
>
> [...snip...]
>
> </style>
> <div class="main_tabnav" id="main_tabnav"><ul><li class=" active"><a
> href="/posts" class=" active" title="Home Page">Home</a></li>
>
> </ul></div>
>
> <h1>Posts</h1>
>
> </body>
> </html>
>
>
> And this is what I get if I use haml in rails 2.2.2:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> <head>
>  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
>  <title>Posts: index</title>
>  <link href="/stylesheets/scaffold.css?1230833799" media="screen"
> rel="stylesheet" type="text/css" />
> </head>
> <body>
>
> <h1>Posts</h1>
>
> </body>
> </html>
>
> As you can see, the tabnav is gone--style, div, and all.
> Please note that in your view, when you call:
>
> <%= tabnav :main %>
>
> (or the haml equivalent) the following partial is invoked:
> /app/views/widgets/_main_tabnav.html.erb
>
> I have verified that the helpers found inside this partial are indeed
> executed when called from a haml template, but they seem to return
> nothing, instead of the inline css and divs shown above.
>
> Thank you for your help, please let me know if this is unclear.
> Giuseppe
> >
>

--~--~---------~--~----~------------~-------~--~----~
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