Lift 3.0: how to replace <lift:bind name="content"> / <lift:surround with="default"...> ?

74 views
Skip to first unread message

Francois

unread,
Feb 1, 2017, 8:27:36 AM2/1/17
to Lift
I'm trying to see if our app is migrable to Lift 3.0 since no Lift 2.x
version support scala 2.12.

It seems that <lift:bind name="content"> / <lift:surround with="default"
at="..."> couple has been removed along with #1568.

We use that feature to define the common layout of our page. So in a lot
of place, 10s of pages.

What is the standard migration path for that ? I only found
https://gist.github.com/heralight/2fc580d0a12ed4cb6f09 that is just
confirming the removal of <lift:bind>.


--
Francois ARMAND - @fanf42
https://github.com/Normation/rudder
http://www.normation.com

Diego Medina

unread,
Feb 1, 2017, 9:11:23 AM2/1/17
to Lift
Hi,

<div data-lift="surround?with=login-wrap;at=content">
...
</div>

where `login-wrap` is the login-wrap.html file, the template with our menus, header, etc

"content" is the element id in the login-wrap.html file

hope that helps.

Diego





--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

--- You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Diego Medina
Lift/Scala Consultant
di...@fmpwizard.com
https://blog.fmpwizard.com/

Francois

unread,
Feb 1, 2017, 9:24:49 AM2/1/17
to lif...@googlegroups.com

Thanks, I just discovers it by myself :)
So just changing <lift:bind name="content" /> to <div id="content"></div> did the trick.

Thanks !
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Diego Medina

unread,
Feb 1, 2017, 10:54:29 AM2/1/17
to Lift
awesome!
Reply all
Reply to author
Forward
0 new messages