Hi there,

how can I put the body tag into a partial? I tried the obvious approach

layouts/application.html.haml
!!! XML
!!! 1.1
%html
  %head
    =stylesheet_link_tag("screen")
  =render :partial => "layouts/body_tag"
    #wrapper
      =yield

layouts/_body_tag.html.haml
%body

but that puts out

<html>
  <head>
    <link href="/stylesheets/screen.css?1298729176" media="screen" 
rel="stylesheet" type="text/css" />
  </head>
  <body></body>
</html>


Is there a way I can put the body stuff into a partial? I need this because 
I'm trying to do 
this https://groups.google.com/forum/?fromgroups#!topic/haml/UFmQo6gDzQM and 
don't want my application-view to be totally cluttered.

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@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