StatefulSnippet.link() function does not take Attribute Parameters

12 views
Skip to first unread message

Jan

unread,
Jul 15, 2010, 7:03:27 AM7/15/10
to Lift
Hi,


i am curious why the StatefulSnippet.link() function does not take any
Attributes as the SHtml.link() function does.

Is there any reason for this?
I would suppose to add the possibility to do so, as seen below:


Currently:

def link(to: String, func: () => Any, body: NodeSeq): Elem =
SHtml.link(to, () => {registerThisSnippet(); func()}, body)

Possible Fix:

def link(to: String, func: () => Any, body: NodeSeq, attrs: (String,
String)*): Elem = SHtml.link(to, () => {registerThisSnippet();
func()}, body, attrs)


Thank you
Jan Blankenhorn

David Pollak

unread,
Jul 15, 2010, 3:17:51 PM7/15/10
to lif...@googlegroups.com
This is a reasonable feature... please open a ticket for it at http://ticket.liftweb.net


--
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.




--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics
Reply all
Reply to author
Forward
0 new messages