[Lift] Re: separation of presentation content and logic

2009-05-07 Thread David Pollak
On Wed, May 6, 2009 at 7:13 PM, Charles F. Munat c...@munat.com wrote: Yeah, the whole thing is kind of a joke. Long ago we should have abandoned HTML for XML. The server should send the content (data) in one file with full semantic markup. Another file should contain a stylesheet that

[Lift] Re: separation of presentation content and logic

2009-05-07 Thread Charles F. Munat
Oh, it's a pretty vision. The part that's missing, though, is the part where we get there from here. Still working on that part... Chas. David Pollak wrote: On Wed, May 6, 2009 at 7:13 PM, Charles F. Munat c...@munat.com mailto:c...@munat.com wrote: Yeah, the whole thing is

[Lift] Re: separation of presentation content and logic

2009-05-07 Thread Aaron Held
I'm on board with this vision as well. In my current java framework I do 2 distinct passes against any url. the first pass connects a url to a data model packageMap ^/sports/video/(.*)/sports/video/doc.xml (this is Groovy by the way) That is an xml file that expands into a larger

[Lift] Re: separation of presentation content and logic

2009-05-06 Thread Timothy Perrett
Check out my article on lifts view binding here: http://is.gd/sfyT Should answer most of your questions :-) Cheers, Tim Sent from my iPhone On 6 May 2009, at 16:11, Aaron aarondh...@gmail.com wrote: So far I'm impressed with Lift and have gone through the toy-app stage of experimenting. I

[Lift] Re: separation of presentation content and logic

2009-05-06 Thread Viktor Klang
On Wed, May 6, 2009 at 5:11 PM, Aaron aarondh...@gmail.com wrote: So far I'm impressed with Lift and have gone through the toy-app stage of experimenting. I have my own framework in production powering large scale sites like http://www.comcast.net and real experience with Django. I'm a

[Lift] Re: separation of presentation content and logic

2009-05-06 Thread David Pollak
Aaron, Short answer: Lift's templating makes it nearly impossible to put business logic into the view, but it is possible to put view logic into your Scala code. Using Lift's bind'ing mechanism, it's possible to completely separate the view logic from the business logic. Longer answer: Lift's

[Lift] Re: separation of presentation content and logic

2009-05-06 Thread Aaron
Thanks, I missed the power of the passing the binding back and forth for the snippet. This gives me something to chew on. I understand the bit about 'html not being presentation', that is becoming more prevalent these days. So the convention about not putting logic in the template is more

[Lift] Re: separation of presentation content and logic

2009-05-06 Thread Charles F. Munat
Yeah, the whole thing is kind of a joke. Long ago we should have abandoned HTML for XML. The server should send the content (data) in one file with full semantic markup. Another file should contain a stylesheet that controls full page layout, plus vector graphics and raster images with