[Lift] Re: lift views

2009-06-01 Thread Viktor Klang
On Sun, May 31, 2009 at 7:05 PM, Timothy Perrett timo...@getintheloop.euwrote: Now you mention it though, it might well work quite nicely. Talk to me Viktor - what are you thinking? Just create an XSLT template to convert the lift templates to a a more readable form? Should be possible?

[Lift] Re: lift views

2009-06-01 Thread Timothy Perrett
Just create an XSLT template to convert the lift templates to a a more readable form? Should be possible? Your thinking just have an XSLT just for preview purposes? That would be pretty sweet. Perhaps we can do something with this:

[Lift] Re: lift views

2009-06-01 Thread Viktor Klang
On Mon, Jun 1, 2009 at 11:05 AM, Timothy Perrett timo...@getintheloop.euwrote: Just create an XSLT template to convert the lift templates to a a more readable form? Should be possible? Your thinking just have an XSLT just for preview purposes? That would be pretty sweet. Yes, my

[Lift] Re: lift views

2009-06-01 Thread Timothy Perrett
Don't worry I'm just being slow as per normal viktor! Do you want to try setting this up or shall I? Cheers, Tim Sent from my iPhone On 1 Jun 2009, at 10:52, Viktor Klang viktor.kl...@gmail.com wrote: On Mon, Jun 1, 2009 at 11:05 AM, Timothy Perrett timo...@getintheloop.eu wrote:

[Lift] Re: lift views

2009-06-01 Thread Viktor Klang
On Mon, Jun 1, 2009 at 12:15 PM, Timothy Perrett timo...@getintheloop.euwrote: Don't worry I'm just being slow as per normal viktor! Do you want to try setting this up or shall I? Make a draft and we'll help eachother out :) Cheers, Tim Sent from my iPhone On 1 Jun 2009, at 10:52,

[Lift] Re: lift views

2009-06-01 Thread Timothy Perrett
Make a draft and we'll help eachother out :) Ok will do - perhaps try mocking this up later in the week. Any thoughts in and around this otherwise? Must haves vs nice to have? Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: lift views

2009-06-01 Thread Viktor Klang
On Mon, Jun 1, 2009 at 1:53 PM, Timothy Perrett timo...@getintheloop.euwrote: Make a draft and we'll help eachother out :) Ok will do - perhaps try mocking this up later in the week. Any thoughts in and around this otherwise? Must haves vs nice to have? Hmmm, perhaps we should start with

[Lift] Re: lift views

2009-05-31 Thread Charles F. Munat
Yoryos, You probably missed the part where you can add a head element inside the surround tags and it will replace the default element: lift:surround with=default2 at=content head titleA better title than the one in default.html/title /head h2Welcome to your project!/h2

[Lift] Re: lift views

2009-05-31 Thread marius d.
Agreed with Tim. I also don't see any value. And the point of viewing the template statically is not an argument to me because the template is still incomplete for a proper rendering, xhtml browser would probably complain about prefixes it doesn't know about etc. Br's, Marius On May 31, 5:32 

[Lift] Re: lift views

2009-05-31 Thread Timothy Perrett
Now you mention it though, it might well work quite nicely. Talk to me Viktor - what are you thinking? Cheers, Tim On 31/05/2009 14:10, Viktor Klang viktor.kl...@gmail.com wrote: Couldn't they just define an XSLT template to view the lift templates with?

[Lift] Re: lift views

2009-05-31 Thread Yoryos
No! I didn't missed that part. Like Xavi said the benefit is a valid html page. It would be much more intresting having something like html xmlns=http://www.w3.org/1999/xhtml; xmlns:lift=http:// liftweb.net/ head!-- I don't not if it's valid to just not even have a head tag when we don't want to

[Lift] Re: lift views

2009-05-31 Thread David Pollak
Folks, There's nothing that Lift does magically with lift:surround/ or lift:embed/ They just replace XML nodes. If you want to structure your apps to not have surround or embed, that's fine. If you want to surround or embed at different points in your files, totally cool. Do it however you

[Lift] Re: lift views

2009-05-30 Thread Timothy Perrett
There really is no benifit in this IMO - the only difference is that you have more redundant code? You can set the head from any page file like so: lift:surround with=default at=content head titlemy lovely title/title /head h2Welcome to your project!/h2 plift:helloWorld.howdy //p

[Lift] Re: lift views

2009-05-30 Thread Xavi Ramirez
The value is that Yoryos version is a valid HTML page and can be easily viewed without having lift/jetty running. This could be handy for designs, for example. I'm personally not 100% sold (I hate boilerplate), but it's an interesting idea. -Xavi On Sat, May 30, 2009 at 7:44 PM, Timothy