[Bese-devel] How to use tal-templates
astor at pvv.ntnu.no
astor at pvv.ntnu.no
Mon Aug 15 11:50:48 UTC 2005
On Mon, Aug 15, 2005 at 11:36:40AM +0200, Marco Baringer wrote:
> astor at pvv.ntnu.no writes:
> > Pages are supposed to be faster when scripts are put in the HEADER
> > section since this section can be processed before/while the page is
> > being laid out.
>
> sorry, i don't follow, why not just put it in the header then?
>
> it's not available quite yet the :inline-javascript
> simple-window-component initarg will soon take a list of parenscript
> code and not a string as it does now.
>
Typically you want to keep the javascript and the HTML close to each
other for a component. So you might want an easy way to add to the
"header" section in the way that render-on adds to the "body" section.
Adding to an inline-javascript slot or something like that would do
the trick I guess.
astor
More information about the bese-devel
mailing list