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, "}}");
$
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://
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
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
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
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
+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
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
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