Re: jQuery.tmpl() and Django

2011-05-28 Thread Tiago Boldt Sousa
Hi, I've using this in Django. I've just substituted {{ }} for [[ ]] in my jquery templates and created a list of all the template ids I have. Then, on document ready, I do: for (var i in templates){ var newtext = $(templates[i]).text().replace(/\[\[/g, "{{").replace(/\]\]/g, "}}"); $

Re: jQuery.tmpl() and Django

2011-05-27 Thread Sean Brant
2011/5/27 Gábor Farkas : > On Fri, May 27, 2011 at 7:04 AM, Sean O'Connor wrote: >> A better approach would for Django to provide some tools and documentation >> to help people work around the conflict.  One easy solution would be to >> provide a verbatim tag like what ericflo wrote >> at https://

Re: jQuery.tmpl() and Django

2011-05-27 Thread Gábor Farkas
On Fri, May 27, 2011 at 7:04 AM, Sean O'Connor wrote: > A better approach would for Django to provide some tools and documentation > to help people work around the conflict.  One easy solution would be to > provide a verbatim tag like what ericflo wrote > at https://gist.github.com/629508.  Anothe

Re: jQuery.tmpl() and Django

2011-05-27 Thread Eric Florenzano
On May 26, 11:59 pm, Jonathan Slenders wrote: > +1 for the verbatim tag. I think this is something that we need in > Django by default. > > But I think that ericflo his implementation is not truly verbatim. I > mean, that it will probably drop whitespace between "{%" and the tag > names. It may no

Re: jQuery.tmpl() and Django

2011-05-27 Thread Jonathan Slenders
At project level is impossible, because you don't know for sure which templates belong to which project. But it should be possible to define the markup syntax for a directory of templates. Embedded in the template is tricky, that's a chicken and egg problem. The language should be known, before we

Re: jQuery.tmpl() and Django

2011-05-27 Thread Michael Blume
Would it be possible to customize the markup Django uses for template compilation, either at the project level, at compile-time, or embedded in the template itself? -Mike On Thu, May 26, 2011 at 11:59 PM, Jonathan Slenders < jonathan.slend...@gmail.com> wrote: > +1 for the verbatim tag. I think

Re: jQuery.tmpl() and Django

2011-05-26 Thread Jonathan Slenders
+1 for the verbatim tag. I think this is something that we need in Django by default. But I think that ericflo his implementation is not truly verbatim. I mean, that it will probably drop whitespace between "{%" and the tag names. It may not be important for jQuery, but if we implement verbatim, t

Re: jQuery.tmpl() and Django

2011-05-26 Thread Sean O'Connor
I think it would be a bit much for us to ask the jQuery crew to change their template language to avoid conflict with ours. Aside from the amount of backwards incompatible work we'd be asking them to do, they'd probably just end up with a new conflict with some other template language. At the en

jQuery.tmpl() and Django

2011-05-26 Thread Ori Livneh
Hello, jQuery.tmpl(), a beta feature slated for inclusion in the main jQuery brach, uses some of the same syntax as Django in its templating markup, which is a bit of a bummer. I'm writing to see whether you think we should get in touch with the jQuery team to see if they could plausibly change it