> -----Original Message-----
> From: Dami Laurent (PJ)
> To: [email protected]
> Subject: [Templates] VIEWS are great for OO-style subclassing. But
> does anybody use them ?
> 
> Hi everybody,
> 
> I was surprised to find out that very few messages in this list talk
> about the VIEW directive. I know, it is "experimental" ... but has
> been there for a couple of years now. I hope this feature will still
> be there in TT3 (or a construct with equivalent power). So this mail
> is just to stir the discussion about who uses it and how.
> 
> At our site we used it to build an OO-style framework of templates,
> with subclassing and inheritance. It has been in production for more
> than one year, so it is no longer "experimental" for us.

We did something very similar a year or two ago. It was elegant, but we
ran into performance problems because we had a large INCLUDE_PATH. Since
most methods/attributes existed only in the base class, the VIEWs caused
*lots* of filesystem stats while searching for the method
implementation. It might be unnoticeable on local disk, but it was
painfully slow on our NFS filesystem.

Philip

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to