I am not using rails unfortunately. This is for a PHP project. I am just using haml to speed up the html markup and accepting that haml looks at smarty tags as plain text. It's working quite nice except for this. Amy's solution is what I am looking for.

Thanks!

Amy L wrote:
Can you give an example of a "good" practice?

On Thu, Jan 21, 2010 at 1:10 PM, Chris Eppstein <[email protected] <mailto:[email protected]>> wrote:

    Don't do that. See previous reply.

    On Thu, Jan 21, 2010 at 1:09 PM, Amy L <[email protected]
    <mailto:[email protected]>> wrote:

        I have this exact setup: separate header and footer files.
        What I usually do is just escape the tags:

            \<html>
            %head
              ... head stuff here ...
            \<body>

        then in the footer

            .my-footer-div
              ... blah blah ...
            \</body>
            \</html>

        Amy


        On Thu, Jan 21, 2010 at 1:04 PM, Michael Narciso
        <[email protected] <mailto:[email protected]>> wrote:

            Is there a way to tell HAML to leave a tag open?

            For example I have 2 partial files, a header and a footer.
            If I use
            HAML on the header it will automatically close <HTML> and
            <BODY> in
            the header file.

            --
            You received this message because you are subscribed to
            the Google Groups "Haml" group.
            To post to this group, send email to [email protected]
            <mailto:[email protected]>.
            To unsubscribe from this group, send email to
            [email protected]
            <mailto: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]
        <mailto:[email protected]>.
        To unsubscribe from this group, send email to
        [email protected]
        <mailto: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]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    [email protected]
    <mailto: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.

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