On Nov 29, 2009, at 5:54 AM, Jeppe Nejsum Madsen wrote:
Ross Mellgren dri...@gmail.com writes:
Very nice! I'll try to play with this and see how it works out.
I think it serves the purpose well: For single element bind use -%%,
for the rest use -.
Now, is there a reason this
Ross Mellgren dri...@gmail.com writes:
I'm not sure if this addresses your points, but I figured I'd throw
out what I've been doing in case it helps.
It's always nice to see how others approach a problem!
I don't use -%, but I do use something similar along with another
implicit so I
Okay, I wrote an implicit + operator combo that scraps most of the boilerplate.
Snippet code:
def howdy(in: NodeSeq): NodeSeq =
bind(foobar, in, foobaz -%% FocusOnLoad(input type=text
name=username id=email class=text input:attrs= /))
(input:attrs= is the magic)
Template code:
Hi,
I know this has been discussed somewhat at length (e.g. here
http://groups.google.com/group/liftweb/browse_thread/thread/27aed5f45faf759/a261a2dfe0ae7207?lnk=gstq=attributes+bind#a261a2dfe0ae7207)
but I still think the default behaviour of - should be reconsidered if
at all possible. Here's
I'm not sure if this addresses your points, but I figured I'd throw
out what I've been doing in case it helps.
I don't use -%, but I do use something similar along with another
implicit so I can place the attrs in exactly the right place, and it
automagically combines class and style