Perhaps something a touch more intuitive like <lift:template/>? It
would feel odd to have to tell lift not to ignore stuff.

Kris

On Wed, Jun 24, 2009 at 9:49 AM, David
Pollak<feeder.of.the.be...@gmail.com> wrote:
> We should probably have a <lift:dont_ignore/> tag to surround stuff like
> this and to complement the <lift:ignore/> tag.  Anyone want to add that
> snippet?
>
> On Wed, Jun 24, 2009 at 8:36 AM, Derek Chen-Becker <dchenbec...@gmail.com>
> wrote:
>>
>> Yes. Since it's a full template and not a fragment (using <lift:surround
>> />) it has to conform to normal XML rules. In particular, XML can only have
>> one root element.
>>
>> Derek
>>
>> On Wed, Jun 24, 2009 at 9:08 AM, Nolan Darilek <no...@thewordnerd.info>
>> wrote:
>>>
>>> On 06/24/2009 09:40 AM, Derek Chen-Becker wrote:
>>> > Wait a second. I have plenty of templates that have multiple elements
>>> > in them. What exactly is the problem you're seeing here?
>>> >
>>> Using 1.1, I have the following in templates-hidden/welcome.html:
>>>
>>> <h2>Welcome</h2>
>>>
>>> <p>Put welcome details here.</p>
>>>
>>> Running mvn test gives me the following failure report:
>>>
>>>
>>> -------------------------------------------------------------------------------
>>> Test set: info.thewordnerd.therascribe.AppTest
>>>
>>> -------------------------------------------------------------------------------
>>> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.8 sec
>>> <<< FAILURE!
>>> testXml(info.thewordnerd.therascribe.AppTest)  Time elapsed: 1.474 sec
>>> <<< FAILURE!
>>> junit.framework.AssertionFailedError: Malformed XML in 1 file:
>>> src/main/webapp/templates-hidden/welcome.html
>>>     at junit.framework.Assert.fail(Assert.java:47)
>>>     at info.thewordnerd.therascribe.AppTest.testXml(AppTest.scala:72)
>>> ..
>>>
>>>  From the surefire report:
>>>
>>> <system-out>Malformed XML in 1 file:
>>> src/main/webapp/templates-hidden/welcome.html
>>> </system-out>
>>> <system-err>:3:70: document must contain exactly one element
>>>                                                                      ^
>>> </system-err>
>>>
>>> Surrounding it in a div fixes that. Must be a new addition in 1.1?
>>>
>>>
>>>
>>
>>
>>
>
>
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to