[Bese-devel] small patch to ucw-tags
Marco Baringer
mb at bese.it
Sat Aug 20 12:45:40 UTC 2005
Friedrich Dominicus <frido at q-software-solutions.de> writes:
> --- ucw-tags.lisp.old 2005-08-20 13:35:15.000000000 +0200
> +++ ucw-tags.lisp 2005-08-20 13:33:17.000000000 +0200
> @@ -231,7 +231,7 @@
> (deftag-macro <ucw:script (&body body)
> `(<:script :type "text/javascript"
> (<:as-is ~% "// <![CDATA[" ~%
> - (js:js* , at body)
> + (js:js , at body)
> ~% "// ]]>" ~%)))
this isn't a feature, not a bug :)
if you use js:js there's no way to inject data into the generated
javascript like this:
(with-unique-js-name (my-func)
(<ucw:script
`(defun ,my-func (x)
(do-stuff-with-x)))
...
(<:input :on-change (js:js-inline* `(,my-func this.value))))
though maybe it would be better to follow the js naming convention and
have <ucw:script and <ucw:script*.
--
-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