[Bese-devel] How to use tal-templates

Marco Baringer mb at bese.it
Mon Aug 15 15:53:55 UTC 2005


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?

> o Per request, "per instance" code in BODY.

as you said i'm fairly pleased with what we have now.

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen



More information about the bese-devel mailing list