how to port Helpers.bind(...) from Lift 2.x to 3.x?

53 views
Skip to first unread message

wm

unread,
Oct 14, 2018, 1:53:13 AM10/14/18
to Lift
Hi,

I'm wondering how to port Helpers.bind(...) from Lift 2.x to 3.x? as show in the the example here:


import net.liftweb.util.Helpers._
...
class MySnippet {
  def example = {
    bind
  }
}

...

class MySnippet {
  def image = bind("myImage",xhtml, AttrBindParam)
}

Thanks.


Antonio Salazar Cardozo

unread,
Oct 15, 2018, 7:28:48 PM10/15/18
to Lift
You can probably lift the code directly from Lift 2.x if you need to (I haven't tried this though). We
encourage you to port your templates to use CSS selector transforms, however.
Thanks,
Antonio

Peter Petersson

unread,
Oct 20, 2018, 3:24:12 AM10/20/18
to lif...@googlegroups.com

Hi

You can also checkout and take a look at this PR [1] (lift demo site modernization) there are plenty of bind removal-ports from v2.5 to v3.3

[1] https://github.com/lift/examples/pull/4

best regards Peter Petersson

--
--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages