def link(to: String, func: () => Any, body: NodeSeq,
attrs: ElemAttr*): Elem = {
fmapFunc((a: List[String]) => {func(); true})(key =>
attrs.foldLeft(<a href={Helpers.appendFuncToURL(to, key +
"=_")}>{body}</a>)(_ % _))
}
So you can add a closure to the href that sets a RequestVar for instance.
If you want to bind with "a [href+]" you could probably do something like:
"a [href+]" #> (S.fmapFunc((a: List[String]) => {setYourUserIdHere;
true})(key => "?" + key + "=_"))
Dunno if there is something already made for that kind of thing…?
Thanks,
Viktor
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>