In my website I'm using a base template that contains most of the
formatting.

render = web.template.render(basedir + 'templates/', base='layout',
globals=globals_vars_custom)

in "layout.html" I have something like:

    $def with (content)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd";>
    <html>
        <head>
            <title>PAGE TITLE</title>
            <!-- Some CSS and some javascript -->
        </head>
        <body>
            $:content
        </body>
    </html>


This base template works fine for the 90% of my website, but I have a
page in which I need to insert some other data inside the `<head>`
(some meta tags).

How can I do this? Is it possible to put the "<head>" inside a
structure that I can easily override inside a template?

Thanks,
Giovanni

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to