On Apr 27, 2:08 pm, Drew Smathers <[email protected]> wrote:
> ....Jinja templates are also extensible so you could achieve some of the
> things you're trying to do just through lightweight extensions (or
> custom filters, tests, etc.):....
It seems to me that the WHIFF approach is far more general, no?
http://aaron.oirt.rutgers.edu/myapp/docs/W1200_1200.config_template
Of course the WHIFF approach is also more verbose, because it's
really meant to be a configuration language, not a templating
system. I want to add a Jinja middleware to WHIFF so you can use
the conveniences of Jinja when they are appropriate. I want to
add other middlewares too, and the WHIFF infrastructure makes it easy
to add middlewares and use them. That's the real point.
> ...I'm not going to go digging through past code (1-2 years ago) to show
> you how I've done it, but I remember if taking about 10 minutes of my
> time [to integrate Pygments in pylons/genshi]
Yes, and I could integrate Pygments into a web server
written in PDP11 assembly in 20 seconds ;c) -- the question
is how easy is it to develop/configure/deploy/use these things
for people without our very high levels of skill :).
> ...Also, your approach seems cumbersome, because you're inlining the CSS
> - why not take advantage of browser caching by putting this in
> external stylesheets?
I'm not sure which page you are referring to but I was either
lazy and sloppy or I wanted to keep the example self contained.
Thanks again for the comments, they have been very instructive.
-- Aaron Watters
===
you want a friend? get a dog. -- Harry Truman
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---