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>
     <title>A better title than the one in default.html</title>
   </head>
   <h2>Welcome to your project!</h2>
   <p><lift: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">
>   <h2>Welcome to your project!</h2>
>   <p><lift:helloWorld.howdy /></p>
> </lift:surround>
> 
> have something like:
> 
> <html>
> <lift:surround with="default2" at="content">
> <head>
>   <title>A better title than the one in default.html</title>
> </head>
> <body>
>   <h2>Welcome to your project!</h2>
>   <p><lift: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
-~----------~----~----~----~------~----~------~--~---

Reply via email to