From: Aredridel Date: 2005-07-13T13:54:18+09:00 Subject: Re: anyone using amrita? On Wed, 2005-07-13 at 03:40 +0900, Navindra Umanee wrote: > Hi Aredridel, > > Thank you very much for the informative reply! > > Aredridel wrote: > > 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. > > Performance-wise, how does XTemplate compare? Is there any particular > reason you're using Amrita2 over XTemplate? (I suppose XTemplate > doesn't have AJAX) I haven't benchmarked -- my guess is close, but I haven't looked. I'm using Amrita because I like model-pushes-view more than view-pulls-model as a concept. They're really close, though. > > ERB is far more general, but also messier. Each has their place -- and > > with amrita2, you can mix them. It's pretty nice. > > Currently I'm using Ruby string interpolation (two levels of it) to > generate all my HTML. I'm not using any particular template package, > just Ruby string manipulation. It's fast and allows caching, but I > fear not very elegant or maintainable in the end. I agree, but then, I don't mind fighting with a validator for an hour either. Ari