Thanks for the feedback. I'm not trying to be awkward here, just
trying to get my head around everything.
Oh, and I completely agree with the risks of premature optimisation.
Thanks,
Stuart
On Mar 10, 5:03 pm, David Pollak
wrote:
> On Wed, Mar 10, 2010 at 7:22 AM, Stuart Roebuck
> wrote:
>
>
On Wed, Mar 10, 2010 at 7:22 AM, Stuart Roebuck wrote:
> Okay, so I now understand what is happening a little better.
>
> When I saw a construct like:
>
> bind("example",xhtml,
>"first_name" -> SHtml.text(user.first_name, user.first_name(_)),
>"last_name" -> SHtml.text(user.last_name, use
The simple way of using FuncBindParam is:
"first_name" -> { (ns: NodeSeq) => SHtml.text(...) }
That will only generate the text if the tag first_name appears.
-Ross
On Mar 10, 2010, at 10:22 AM, Stuart Roebuck wrote:
> Okay, so I now understand what is happening a little better.
>
> When I sa
Okay, so I now understand what is happening a little better.
When I saw a construct like:
bind("example",xhtml,
"first_name" -> SHtml.text(user.first_name, user.first_name(_)),
"last_name" -> SHtml.text(user.last_name, user.last_name(_))
it reminded me of a match with cases and my assu