I've been successful creating kid templates with parameters passed in through the calling function.
But now I want to use one of those parameters in the HEAD of the template, rather than the BODY, and it doesn't work for me. Specifically, I want the name of the external javascript file that I'm using in my plotdraw.kid template to be dependent on the value of a passed-in parameter, plotsID, which is passed in like so: http://myURL:8888/plotdraw?plotsID=4 and the script in the HEAD of the document is this: <script type="text/javascript" src="http://myURL/SpotPlot/spotplot/static/javascripts/messages-${plotsID}.js"></script> </head> And that yields this error: NameError: name 'plotsID' is not defined Error location in template file '/Library/WebServer/Documents/SpotPlot/spotplot/templates/plotdraw.kid' on line 19: </script> How can I use a passed-in parameter in a javascript script? thanks S ------------------------------------------------------------------------- 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