On Tue, Jan 19, 2010 at 2:36 AM, ced <[email protected]> wrote:

> Do you perhaps have an example function at hand?
>

LiftRules.snippets.append {
  case "Foo" => xml => bind("foo", xml, "bar" -> "baz")
}


>
>
> On 19 Jan., 06:12, David Pollak <[email protected]> wrote:
> > On Sun, Jan 17, 2010 at 12:24 PM, ced <[email protected]> wrote:
> > > Hi all,
> > > is there a way to hook into the creation of snippets? I'd like to gain
> > > control over their creation.
> > > I tried to find something in LiftRules but couldn't find anything that
> > > might be suitable for this purpose.
> >
> > LiftRules.snippets
> > LiftRules.snippetDispatch
> >
> > No need for DI.  You add PartialFunctions and Lift takes care of the
> rest.
> >
> >
> >
> >
> >
> > > But maybe I missed something. Any
> > > hints?
> >
> > > Cheers,
> > > Chris
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Lift" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<liftweb%[email protected]>
> <liftweb%[email protected]<liftweb%[email protected]>>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/liftweb?hl=en.
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Surf the harmonics
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> 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
Surf the harmonics
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

Reply via email to