|
|
| Author |
Message |
|
| Guest |
Posted: Wed Mar 07, 2007 2:38 am |
|
|
|
Guest
|
> Undoubtably a lazy-evaluation "pull"-template would make it possible
> to put "business logic" in the template, but that is an argument
> against programmers or deadline demands that do so, and not against a
> solution that allows it as a cop out.
>
> PS. Somewhere someone must have created a template language with
> lazy-evaluation already? The functional programming purists would have
> the idea strike them easier
> than others.
One of my favorite aspects of ErlTL templates is that the controller
can pass them closures, which the view uses to "lazily" evaluate its
data. I wrote a whole tutorial about this here:
http://yarivsblog.com/articles/2007/02/23/erlyweb-tutorial-life-in-the-intersection-of-fp-and-dynamic-html/.
This feature is so great that I would have to use a template language
that doesn't let me use closures.
Best,
Yariv
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Abed1 |
Posted: Mon Apr 09, 2007 10:32 am |
|
|
|
Guest
|
|
| Back to top |
|
| Wasin |
Posted: Mon Apr 09, 2007 10:52 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Mutha |
Posted: Wed Apr 11, 2007 10:58 am |
|
|
|
Guest
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|