* Andy Wardley <[EMAIL PROTECTED]> [2002-12-30 09:46]:
> darren chamberlain wrote:
> > Someone requested something similar back in September, and I made a
> > patch that created a new directive, DO, that created a new Stash for
> > the processed file.
> 
> I've got a new implementation of the Stash for TT3 which implements 
> the localisation in a slightly different manner. 

Where is this mythical TT3?   tt2.org/download/v3/ is still dated June
2001, and tt2.org/download/devel/ is 2.08c.  When will the Template3
module be in CVS?  *nudge* *nudge*

> The primary reason for doing this was to implement copy-on-write.  This
> avoids the overhead of localising the stash until a variable value is
> changed, which sometimes never happens and hence never needs to be done.

Ah, nice.

> As Darren points out, it's a non-trivial patch to add new language 
> features because you have to re-compile the parse grammar.  This is 
> another ugliness that is going away in TT3.  Adding new directives 
> with custom behaviours will be much easier.

How would this work?  I would like to see layered grammars, where you
can have a specialized grammar that conditionally overrides pieces of
a more general grammar (or grammars).

> In fact, DO may well appear in TT3 as a core language directive (or 
> one that can be enabled by some option), but I've got half a memory
> that I had a different use intended for it.  Need to think more about
> that.

What would DO do?  There used to be an item in the TODO list about DO,
but it went away; when I implemented the DO referenced in September, it
was missing from the TODO.

(darren)

-- 
My one regret in life is that I am not someone else.
    -- Woody Allen

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.ourshack.com/mailman/listinfo/templates

Reply via email to