[Lift] Re: lift views
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? 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? -- Viktor Klang Rockstar Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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: http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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 point exactly! :) Perhaps we can do something with this: http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html Cheers, Tim -- Viktor Klang Rockstar Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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: 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 point exactly! :) Perhaps we can do something with this: http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html Cheers, Tim -- Viktor Klang Rockstar Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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, Viktor Klang viktor.kl...@gmail.com wrote: 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 point exactly! :) Perhaps we can do something with this: http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html Cheers, Tim -- Viktor Klang Rockstar Developer -- Viktor Klang Rockstar Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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 subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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 defining the needs. The OP could perhaps elaborate a bit more on how his needs are? Cheers, Tim -- Viktor Klang Rockstar Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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 plift:helloWorld.howdy //p /lift:surround I don't see that duplicating the html and body tags unnecessarily makes it any better. Just adds clutter, IMO. The fewer tags I have to deal with, the easier it is to read. Chas. valotas wrote: Hi all! Just a proposal: wouldn't be better to have the views look like more an html page. I mean for the basic project created, instead of having an index.html look like lift:surround with=default2 at=content h2Welcome to your project!/h2 plift:helloWorld.howdy //p /lift:surround have something like: html lift:surround with=default2 at=content head titleA better title than the one in default.html/title /head body h2Welcome to your project!/h2 plift:helloWorld.howdy //p /body /lift:surround /html Yes we have more boilerplate code but with that way it would be much more easier the edditing of the page. Yoryos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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 am, Xavi Ramirez xavi@gmail.com wrote: 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 Perrett timo...@getintheloop.eu wrote: 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:surround Lift automatically consolidates the head elements into a single one before presenting the resulting html output to the browser. Other than that, your proposistion adds no value right? Its still well formed xml with a single node, it just happens to be that your is html. Do note however, that if you really wanted to use your way, then lift would not get in your way Cheers, Tim On May 30, 10:57 pm, valotas valo...@gmail.com wrote: Hi all! Just a proposal: wouldn't be better to have the views look like more an html page. I mean for the basic project created, instead of having an index.html look like lift:surround with=default2 at=content h2Welcome to your project!/h2 plift:helloWorld.howdy //p /lift:surround have something like: html lift:surround with=default2 at=content head titleA better title than the one in default.html/title /head body h2Welcome to your project!/h2 plift:helloWorld.howdy //p /body /lift:surround /html Yes we have more boilerplate code but with that way it would be much more easier the edditing of the page. Yoryos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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 --/head body lift:layout=default lift:name=content h2Welcome to your project!/h2 plift:helloWorld.howdy //p /body /html witch has less boilerplate (than my first example) and is very easy IMHO to understand and read. I'm very new to lift and I just think that telling something that would look easier to me, would also look easier to any newby. At the other hand, being newby also means that I don't have a good overview of the framework and it's design. It is better thought to say something event if it is wrong before you get used to it, because then you'll just get used to it!! Yoryos On May 31, 1:53 am, Charles F. Munat c...@munat.com wrote: 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 plift:helloWorld.howdy //p /lift:surround I don't see that duplicating the html and body tags unnecessarily makes it any better. Just adds clutter, IMO. The fewer tags I have to deal with, the easier it is to read. Chas. valotas wrote: Hi all! Just a proposal: wouldn't be better to have the views look like more an html page. I mean for the basic project created, instead of having an index.html look like lift:surround with=default2 at=content h2Welcome to your project!/h2 plift:helloWorld.howdy //p /lift:surround have something like: html lift:surround with=default2 at=content head titleA better title than the one in default.html/title /head body h2Welcome to your project!/h2 plift:helloWorld.howdy //p /body /lift:surround /html Yes we have more boilerplate code but with that way it would be much more easier the edditing of the page. Yoryos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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 want. It makes no difference to Lift. Lift's templating is just an XML substitution system. Substitute or don't at your pleasure. Do what works best for you. It makes no difference to Lift. Thanks, David On Sun, May 31, 2009 at 11:31 AM, Yoryos valo...@gmail.com wrote: 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 --/head body lift:layout=default lift:name=content h2Welcome to your project!/h2 plift:helloWorld.howdy //p /body /html witch has less boilerplate (than my first example) and is very easy IMHO to understand and read. I'm very new to lift and I just think that telling something that would look easier to me, would also look easier to any newby. At the other hand, being newby also means that I don't have a good overview of the framework and it's design. It is better thought to say something event if it is wrong before you get used to it, because then you'll just get used to it!! Yoryos On May 31, 1:53 am, Charles F. Munat c...@munat.com wrote: 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 plift:helloWorld.howdy //p /lift:surround I don't see that duplicating the html and body tags unnecessarily makes it any better. Just adds clutter, IMO. The fewer tags I have to deal with, the easier it is to read. Chas. valotas wrote: Hi all! Just a proposal: wouldn't be better to have the views look like more an html page. I mean for the basic project created, instead of having an index.html look like lift:surround with=default2 at=content h2Welcome to your project!/h2 plift:helloWorld.howdy //p /lift:surround have something like: html lift:surround with=default2 at=content head titleA better title than the one in default.html/title /head body h2Welcome to your project!/h2 plift:helloWorld.howdy //p /body /lift:surround /html Yes we have more boilerplate code but with that way it would be much more easier the edditing of the page. Yoryos -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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:surround Lift automatically consolidates the head elements into a single one before presenting the resulting html output to the browser. Other than that, your proposistion adds no value right? Its still well formed xml with a single node, it just happens to be that your is html. Do note however, that if you really wanted to use your way, then lift would not get in your way Cheers, Tim On May 30, 10:57 pm, valotas valo...@gmail.com wrote: Hi all! Just a proposal: wouldn't be better to have the views look like more an html page. I mean for the basic project created, instead of having an index.html look like lift:surround with=default2 at=content h2Welcome to your project!/h2 plift:helloWorld.howdy //p /lift:surround have something like: html lift:surround with=default2 at=content head titleA better title than the one in default.html/title /head body h2Welcome to your project!/h2 plift:helloWorld.howdy //p /body /lift:surround /html Yes we have more boilerplate code but with that way it would be much more easier the edditing of the page. Yoryos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift views
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 Perrett timo...@getintheloop.eu wrote: 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:surround Lift automatically consolidates the head elements into a single one before presenting the resulting html output to the browser. Other than that, your proposistion adds no value right? Its still well formed xml with a single node, it just happens to be that your is html. Do note however, that if you really wanted to use your way, then lift would not get in your way Cheers, Tim On May 30, 10:57 pm, valotas valo...@gmail.com wrote: Hi all! Just a proposal: wouldn't be better to have the views look like more an html page. I mean for the basic project created, instead of having an index.html look like lift:surround with=default2 at=content h2Welcome to your project!/h2 plift:helloWorld.howdy //p /lift:surround have something like: html lift:surround with=default2 at=content head titleA better title than the one in default.html/title /head body h2Welcome to your project!/h2 plift:helloWorld.howdy //p /body /lift:surround /html Yes we have more boilerplate code but with that way it would be much more easier the edditing of the page. Yoryos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---