thank you Christoph, I had a look at the link you provided. It seems in that documentation however that templates are being instantiated in a different way than I am doing - I'm using TurboGears. Maybe I should have posted this question in the TurboGears forum?
The documentation seems to suggest that any variable that is passed in can be accessed by simply enclosing it with {} and preceding it with $ , e.g. ${plotsID} The problem seems to be that if I do this inside some javascript, or in the HEAD of the document instead of the BODY of the document, the variable is not recognized and I get a NameError. In other words, if I call the plotdraw method in my controllers.py and specify plotsID =4, the resulting page will be loaded: http://myURL:8888/plotdraw?plotsID=4 and I can use plotsID in the body of the document, but I can't seem to access it in the head of the document, either inside a <? python ?> tag or inside a <script> tag. regards Stewart On Mon, Mar 24, 2008 at 1:37 PM, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > > http://kid-templating.org/guide.html#template-variables ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kid-template-discuss mailing list kid-template-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kid-template-discuss