Aria Stewart
7/12/2005 4:44:00 PM
On Wed, 2005-07-13 at 00:42 +0900, Navindra Umanee wrote:
> Hi,
>
> I've been looking at the documentation for Amrita[1] lately and I have to
> say, the whole concept seems very elegant and appealing for anyone who
> wants to separate context from presentation. Throughout the site
> however, I've seen hints that Amrita may not be as performant as it
> should be.
>
> Does anyone here have a testimonial for using Amrita for a non-trivial
> and relatively busy website? How well does it perform in practice?
>
> Also, what is the difference between XTemplate[2] and Amrita? I
> couldn't really see any from a casual browsing, except for syntax --
> and Amrita seems to have the nicer syntax.
I've used both, and now Amrita2 as well.
Amrita2's performance is far more tweakable, and it's more flexible in
most ways, but not quite stable for production use.
XTemplate is a bit more view-pulls-from-model, and Amrita is more
model-pushes-to-view, in concept. They're pretty close, though. Amrita
takes some funny pushing to make some designs work, and XTemplate can be
cleaner.
Amrita's performance isn't as hot as one might like, but it's not
abysmal.
I really like working with Amrita, and amrita2 is shaping up nicely as a
major update.
The AJAX stuff in Amrita2 is especially spiffy -- take an HTML template,
and model data, and it spits out json data to update an HTML page
client-side. Unbelievably clean. template.expand() on the client side,
template.expand() on the server side.
There's one quirk of Amrita2 I'm struggling with at the moment, but
nothing untoward.
ERB is far more general, but also messier. Each has their place -- and
with amrita2, you can mix them. It's pretty nice.
Ari