[EMAIL PROTECTED] wrote: > Karl, > > On Dec 8, 8:12 pm, "Karl Guertin" <[EMAIL PROTECTED]> wrote: > > On 12/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I would like to use nvu to edit/create kid templates. It works OK as > > > long as the paths to the CSS and image files are relative (i.e. > > > ../static/images/).The easiest way to do this is to use the py:attrs > > > trick: > > > > http://docs.turbogears.org/1.0/Designer > > Thanks for the hint. Is there any speed penalty by doing this (I > suspect Kid can replace the attributes when it compiles the templates > and speed shouldn't be affected)?
IIRC this substitution is done at render time, not compile time. I don't know if Kid substitutes strings in at compile time though (they are immutable anyways, so it easily could). That said it is just another string substitution and (if the problem exists at all) is probably has less of a performance penalty than, for example, pulling a string from SQLObject/SQLAlchemy. -Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

