On Sun, Feb 21, 2010 at 1:15 AM, Pablo Antonio <[email protected]> wrote:
> Except for the jQuery thing, everything else is fullfiled by
> Templetor. I know you said you were pretty happy with Templetor, but I
> wonder if you found any disadvantage in it, and that's what motivated
> you to take a look at something else. If that's the case, I'd like to
> know what those disadvantages are :)

Well, apart from theoretical jQuery thing, which is not hard to deal
with in Templetor, except that it's a bit more typing, there's one
more thing that's a bit awkward. The if clause in tag attributes. For
example:

$if sunny:
    <div class="yellow">
$else:
    <div class="grey">
...
</div>

would be nicer if it looked like:

    <div class="$('yellow' if sunny else 'grey')">...</div>

or something similar. Maybe it's doable, but I don't know how? Anyway,
it's not a big problem, and I do it like the first example.

I guess the main motivation, though, was simply curiosity. I've just
discovered Evoque (http://evoque.gizmojo.org/), which sounds
interesting, boasting better performance than Mako, automatic escaping
using Qpy, etc. I'm actually in the process of writing the contrib
render for it, so I can test it in one of my apps.

I'm not looking for a be-all-end-all solution (although I'd be very
happy if I did stumble upon it). It was just fascination with all
those templating libraries out there. I'm sure every one of them had a
good reason to be (re)invented, so I'm curious to see what they have
to offer.

Regards,

-- 
Branko Vukelić

http://foxbunny.tumblr.com/
http://www.flickr.com/photos/16889...@n04/
http://www.twitter.com/foxbunny
http://github.com/foxbunny

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to