Maybe I'm not understanding the question, but it is perfectly possible to ignore the template and have index.html be anything you want. I have some pages that wrap the code with other templates (I use more than one, depending on the location on the site), and pages that stand alone. And I have pages that are generated entirely in the snippet. I also have URLS that respond with pure XML, some of which are generated in the snippet code, and others which are bound to a simple template in the webapp directory.
Did I miss something? Chas. Derek Chen-Becker wrote: > Well, I just tested and this seems to not be the case :( > > On Fri, Mar 13, 2009 at 5:47 PM, Derek Chen-Becker > <[email protected] <mailto:[email protected]>> wrote: > > I think David could better answer this (I haven't looked at this > part of the code for a while), but I think that anything outside of > the <lift:surround> tag is tossed, so you could have a fully > compliant XML file that will only have a portion used. > > Derek > > > On Fri, Mar 13, 2009 at 5:40 PM, Marc Boschma > <[email protected] <mailto:marc%[email protected]>> wrote: > > > Hi Mal, > > That aspect of the lift templating approach also warped my head > for a > while, having seen so many examples of the opposite approach (PHP, > JSP, etc)... > > There is a certain part of me that still is unsettled about it, > but I > can see the advantages of it. > > Marc > Ps. can the files such as index.html in the examples be full XML > compliant documents? > > On 13/03/2009, at 3:30 PM, mal3 wrote: > > > > > Why does HelloWorld index.html contain a snippet rather than a > > complete XHTML page? > > > > When I first saw the HelloWorld example I thought there must be a > > mistake, > > because the index.html file contains a snippet, while > default.html > > contains > > what looked more like a complete XHTML page. > > > > Why doesn't lift initially reference a complete XHTML page > and then > > pull in the snippet(s)? > > > > Is it to make it difficult/impossible for logic to creep into the > > view? > > > > Mal. > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
