Re: cheetah and jquery
"R. Tyler Ballance" <[email protected]>
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Apr 25, 2009 at 03:36:04AM -0700, [email protected] wrote: > Cheetah doesnt play well along with jquery > as Jquery uses $ to find variables or ids > But since cheetah doesnt find the variables in the search list it throws > an error > > But since we need to fill some javascript with variables from cheetah we > cannot do > > #raw > Jquery code > #end raw > > How do you guys deal with this situation > thanks One crazy alternative is to use the compiler setting that actually sets the "$" as the Cheetah variable token. You could use `cheetah compile --settings="cheetahVarStartToken='@'" my.tmpl` Then you could refer to all your variables as "@myvar" Madness, but also an option. -- -R. Tyler Ballance Slide, Inc. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkn112UACgkQFCbH3D9R4W9CqQCfeG6mRqC9O1ast1wHoCgGGF2V 7JkAnjcvkWBqoOo/J0I2pZHPLWv4gkSS =FlZM -----END PGP SIGNATURE-----