On 10/17/06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>
> Pedro Algarvio, aka, s0undt3ch wrote:
> > Another Prob. I tried:
> >
> > =============== SNIP ==================
> > <head py:match="head">
> > ${ h.javascript_include_tag('/javascripts/effects.js', builtins=True) }
> > ${ h.javascript_include_tag('/js/ispmanccp.js') }
> >
> > ${ h.stylesheet_link_tag('/style/main.css') }
> > ${ page_specific_css }
> > </head>
> > =============== SNIP END ==================
> >
> > and the output is:
> > =============== SNIP ==================
> > <head>
> > <script src="/javascripts/prototype.js"
> > type="text/javascript"></script>
> >
> > <script src="/javascripts/scriptaculous.js"
> > type="text/javascript"></script>
> > <script src="/javascripts/effects.js"
> > type="text/javascript"></script>
> > <script src="/js/ispmanccp.js"
> > type="text/javascript"></script>
> > <link href="/style/main.css" media="screen" rel="Stylesheet"
> > type="text/css" />
> > </head>
> >
> > =============== SNIP END ==================
> >
> > So the stream escaped <, >, how do I stop that?
> >
>
> AFAICT, you'd need to wrap the HTML strings generated by helpers into
> genshi.core.Markup objects - cf:
> http://genshi.edgewall.org/wiki/GenshiFaq#HowcanIincludeliteralXMLintemplateoutput
Alternatively, implement javascript_include_tag in Genshi instead of Python.
Happy Hacking!
-jj
--
The one who gets the last laugh isn't the one who did the laughing,
but rather the one who did the writing.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss
-~----------~----~----~----~------~----~------~--~---