Olivier Favre-Simon wrote:
Yes __import__ is much more clean.
other option is importing as T and having T.html, T.body etc. (many
nevow/stan docs use this style)
Yes, I opted against this as I felt it was unneeded typing and clutter
in the templates, especially when I could transparently remove the need
for a tag namespace by using a little __import__ trickery. The usage of
Stan in TG is somewhat different than for a typical Nevow application,
and I felt this more appropriate in this case. That's also the reason I
added the inheritance tag: it helps Stan fit better into the TG way of
doing things (although I've never been fond of the term "template
inheritance" as I feel it's a bit misleading).
As I said this was just quick&dirty hack to prototype, but now that we
gonna have a super-flexible setup with _real_ template plugins (I mean
really independant of TG / CP / whatever, just relying on the template
engine + entry_points), my code is thing of the past :-)
As it all will be... someday.
Cackling evil'ly yours,
Cliff