2010/4/6 Ignacio Burgueño <[email protected]>
> Hi. Is it possible to turn off the new behaviour of Cosmo (expressions in
> selectors) ?
> Since I use Cosmo to spit out some Javascript that uses jQuery, all
> instances of
> $("#foo")
> turns to
> foo
>
>
You can escape it with another $: $$("#foo")
> So it is useless for me. How can I disable that?
>
> By the way, the following gives me an error.
>
> require("luarocks.require")
> require("cosmo", "10.03.31-1")
>
> print(cosmo.fill([[$("hola")]], {}))
> print(cosmo.fill([[$("hola")]], {}))
>
>
> lua5.1: [string "$("hola")"]:19: attempt to call global 'hola' (a nil
> value)
> stack traceback:
> [string "$("hola")"]:19: in function 'template_func'
> [string "$("hola")"]:36: in function <[string "$("hola")"]:33>
> (tail call): ?
> c:\cosmo.lua:5: in main chunk
> [C]: ?
>
>
This is a bug. I fixed the trunk and will publish a bugfix release later.
--
Fabio Mascarenhas
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/