re. On my computer the
time went to around 25ms. For datetimes the time needed is somewhere
around 100ms. If you could inline the localize(i) call for the integer
case you would get back to around 4ms, as it doesn't actually do
anything else than return force_unicode(i)... So, when designing
templ
> Alex Gaynor wrote:
>
> ... The
> semantics of Python code is that variables assigned in a for loop
> exist beyond the loop itself, including the looping variable. Django
> templates, however, pop the top layer from the context stack at the
> end of a for loop. This intermedia
Django Template Compilation rev.2
=
About Me
I'm student of last year of Technical University of Lodz, Poland on faculty
of electronic engineering and computer science, while now in parallel I'm
doing my second diplom of electronic engineering o
Maybe. We solved that use-case by adding another custom directory to
TEMPLATE_DIRS when we had to override the base template. But I can
imagine that someone wants to be able to dynamically change the base
template, from inside a view or context processor.
This was a choice we made, because almost
On Mon, Mar 28, 2011 at 11:04 AM, Dan Fairs wrote:
> We don't have a core site base template. Each client on our system gets
> their own, as IA/branding etc. varies considerably (and indeed includes
> chunks of markup that the client supplies directly).
... and congratulations, you've successfull
- preprocess inheritance. (one important incompatibility: {% extend
"..." %} should only get a string as parameter, not a variable! But
honestly, I really don't know why someone would do that.
For the record - we do!
We don't have a core site base template. Each client on our system gets
their
Hi all,
I have also been working for about a year on such a template compiler,
and recently published it on Github. You may be interested in this
project:
https://github.com/citylive/django-template-preprocessor
** Short summary of what already is possible, and what still needs to
be done:
The
On Mar 27, 5:48 am, "G.Boutsioukis" wrote:
> Hi, I'm thinking about submitting a proposal for template compilation
> and I'm posting this as a request for more info.
>
> In particular, I remember this project being discussed last year and I
> pretty much assume
On Sun, Mar 27, 2011 at 10:48 AM, G.Boutsioukis wrote:
> Hi, I'm thinking about submitting a proposal for template compilation
> and I'm posting this as a request for more info.
>
> In particular, I remember this project being discussed last year and I
> pretty much a
On Sat, Mar 26, 2011 at 10:48 PM, G.Boutsioukis wrote:
> What was the
> rationale behind the decision to reject it? Unless, of course, it was
> made on his part.
>
It wasn't rejected, Alex withdrew the template compilation proposal in favor
of a non-relational DB project, wh
Hi, I'm thinking about submitting a proposal for template compilation
and I'm posting this as a request for more info.
In particular, I remember this project being discussed last year and I
pretty much assumed that Alex Gaynor's proposal would have been
accepted(I see he's lis
On Fri, Mar 5, 2010 at 2:54 PM, Jonathan S wrote:
> Just a few thoughts, this is my idea and I'm not an expert at
> compilers, so forgive me if I'm somewhere wrong.
>
> (1) For me, personally, I think the scoping of variables should be
> kept inside a block.
>
> {% with "x" as x %}
> {% with "y" a
Just a few thoughts, this is my idea and I'm not an expert at
compilers, so forgive me if I'm somewhere wrong.
(1) For me, personally, I think the scoping of variables should be
kept inside a block.
{% with "x" as x %}
{% with "y" as x %}
{% endwith %}
{{ x }}
- you would print "y", because
On Thu, Mar 4, 2010 at 8:01 PM, SmileyChris wrote:
> Would whitespace handling be identical to the current template system?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-develop...@goog
Would whitespace handling be identical to the current template system?
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to
d
On Thu, Mar 4, 2010 at 6:58 PM, Russell Keith-Magee
wrote:
> On Fri, Mar 5, 2010 at 12:26 AM, Alex Gaynor wrote:
>> On Thu, Mar 4, 2010 at 3:41 AM, Russell Keith-Magee
>> wrote:
>>> On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote:
>
Templates will be compiled by turning each template int
On Fri, Mar 5, 2010 at 12:26 AM, Alex Gaynor wrote:
> On Thu, Mar 4, 2010 at 3:41 AM, Russell Keith-Magee
> wrote:
>> On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote:
>>> Templates will be compiled by turning each template into a series of
>>> functions,
>>> one per block (note that the base
On Thu, Mar 4, 2010 at 3:41 AM, Russell Keith-Magee
wrote:
> On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote:
>> Django Template Compilation
>> ===
>
> First up, this looks like a solid proposal Alex. Anything that speeds
> up template generat
On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote:
> Django Template Compilation
> ===
First up, this looks like a solid proposal Alex. Anything that speeds
up template generation is good, and if your indicative stats turn out
to be representative of real
Django Template Compilation
===
About Me
I'm a sophomore computer science student at Rensselaer Polytechnic Institute.
I'm a frequent contributor to Django (including last year's successful multiple
database GSoC project) and other related proje
20 matches
Mail list logo