[Bese-devel] Re: Two patches for the window component
Marco Baringer
mb at bese.it
Fri Feb 17 12:54:25 UTC 2006
Henrik Hjelte wrote:
> The ucw_public_apply.cgi darcs script complains about some conflict
> in ./src/components/window.lisp when I try to apply these two small
> changes to the window component. Maybe they can added manually?
>
> First is a bugfix that inline javascript should be rendered as-is rather
> than as html.
>
> Then is a small addition to the window component. By specificing some
> javascript inline-code as first-inline-javascript you can be sure that
> it is executed first of all. I needed this for the dojo toolkit, which
> presumes some parameters are set before the dojo.js file is included.
so now we have inline-javascript, javascript and
first-inline-javascript, isn't this a bit much? how about if we removed
all three slots and left only javascript but changed it to work like this:
The javascript slot would be a list (and will be rendered in order)
where each element is a list of:
(:SRC url) - generate a <script src="URL"></script>
(:JS string) - generate a <script>STRING</script>
this will allow any weird comination of file loading/script evaluating
should the need arise.
--
-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