2006/1/9, Rich <[EMAIL PROTECTED]>:
>
> I've inherited a project that I'd like to use TurboGears with.  Needing
> some advice on the best way to do something.
>
> I have a bunch of html pages that aren't xhtml and some of them have
> some pretty nasty html ala frontpage. the pages themselves contain html
> fragments that i'd like to include into a kid template.  but since they
> aren't xhtml and they don't clean well with htmltidy I'm wondering the
> best route to get the template I want from kid, but substitute in the
> html fragments.
>
> any suggestions?
>

One (lame) option would be put placeholder into kid template, process
template manually and replace placeholder with html fragment after
rendering. I think @cherrypy.expose must be used instead of
@turbogears.expose, to return string instead of dict.


--
Ksenia

Reply via email to