[Bese-devel] How to use tal-templates
Alexander Kjeldaas
alexander.kjeldaas at gmail.com
Tue Aug 16 13:11:20 UTC 2005
On 8/15/05, Marco Baringer <mb at bese.it> wrote:
> astor at pvv.ntnu.no writes:
>
> > So to me it seems like a component might want to produce:
> > o Global code (external .js-file)
> > o Per request, "per class" code in HEAD.
>
> these two can be done with the same mechanism? if we had a method
> add-to-head-once-only:
>
> (defmethod add-to-head-once-only ((c my-component))
> (<:script :src "foo.js")
> (<:meta ...)
> (<:link ...))
>
> > o Per request, "per instance" code in HEAD.
>
> how does the name add-to-head sound?
>
Good.
astor
More information about the bese-devel
mailing list