Just to follow up on this thread, the exact solution that was found (and
works) is to insert the following into your genshi template:

<?python
    from genshi import HTML
?>

Once done, the HTML function is now visible and usable in your template.

On Wed, Dec 30, 2009 at 2:51 PM, James <rent.lupin.r...@gmail.com> wrote:

> On IRC, mpedersen suggested the HTML and XML functions *should*
> already be there - not sure they're not for me...
>
> A good-enough workaround is to add
> <?python
> from genshi import HTML, XML
> ?>
>
> to the root of your template hierarchy.
>
> J
>
> On Dec 30, 6:40 pm, James <rent.lupin.r...@gmail.com> wrote:
> > Hello all - is there a TG2 analog to being able to use genshi's HTML()
> > and XML() directly in templates?
> >
> > Failing that, can I add python function's into the template context
> > somehow?
> >
> > Cheers!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To post to this group, send email to turboge...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+unsubscr...@googlegroups.com<turbogears%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
>
>
>


-- 
Michael J. Pedersen
My IM IDs: Jabber/peder...@icelus.tzo.com, ICQ/103345809, AIM/pedermj022171
         Yahoo/pedermj2002, MSN/pedermj022...@hotmail.com

--

You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to turboge...@googlegroups.com.
To unsubscribe from this group, send email to 
turbogears+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.


Reply via email to