Wouldn't this work with the Scala XML parser?
xml:group
h2Welcome/h2
pPut welcome details here./p
/xml:group
On 25/06/2009, at 1:08 AM, Nolan Darilek 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
Sleeping on it the snippet would be as simple as
def group(c : scala.xml.NodeSeq) : scala.xml.NodeSeq =
scala.xml.Group(c)
which would allow for:
lift:group
h2Welcome/h2
pPut welcome details here/p
/lift:group
The advantage is that it is in the lift name space...
Marc
On
Wait a second. I have plenty of templates that have multiple elements in
them. What exactly is the problem you're seeing here?
Derek
On Tue, Jun 23, 2009 at 10:09 PM, Nolan Darilek no...@thewordnerd.infowrote:
Cool deal, mvn test showed me the issue.
Apparently, templates can only have a
The error was occurring if you had more than a single root element. Thus:
div
h2/
p/
/div
works whereas
h2/
p/
caused the template not found erroneous exception before David fixed
it. Thanks David!
Kris
On Wed, Jun 24, 2009 at 8:40 AM, Derek Chen-Beckerdchenbec...@gmail.com wrote:
Ah, so this would be a top-level template (no lift:surround).
Derek
On Wed, Jun 24, 2009 at 9:16 AM, Kris Nuttycombe
kris.nuttyco...@gmail.comwrote:
The error was occurring if you had more than a single root element. Thus:
div
h2/
p/
/div
works whereas
h2/
p/
caused the
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:
h2Welcome/h2
pPut welcome details here./p
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.infowrote:
On 06/24/2009 09:40 AM, Derek Chen-Becker
I've added an issue for this.
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
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
Pollakfeeder.of.the.be...@gmail.com wrote:
We should probably have a lift:dont_ignore/ tag to surround stuff like
this and to
On Tue, Jun 23, 2009 at 5:52 PM, Nolan Darilek no...@thewordnerd.infowrote:
OK, finally introducing the first bit of user dynamicity into my app. I
want my homepage to contain a bit of homepagy-type intro stuff for
logged-out users, but a dashboard-like interface when someone is logged
in.
I just implemented the code at:
http://github.com/dpp/lift_1_1_sample/tree/master
Also, please do an mvn test
which will make sure all your templates are well formed XML
On Tue, Jun 23, 2009 at 8:37 PM, Nolan Darilek no...@thewordnerd.infowrote:
On 06/23/2009 09:43 PM, David Pollak wrote:
Cool deal, mvn test showed me the issue.
Apparently, templates can only have a single element, I had an h2/ and
a p/. The book called it a fragment, so this wasn't entirely clear. In
any case, I put a div#welcome around it and now it works fine. Thanks
for the pointer.
On Tue, Jun 23, 2009 at 9:09 PM, Nolan Darilek no...@thewordnerd.infowrote:
Cool deal, mvn test showed me the issue.
Apparently, templates can only have a single element, I had an h2/ and
a p/. The book called it a fragment, so this wasn't entirely clear. In
any case, I put a div#welcome
13 matches
Mail list logo