On Wed, Jan 14, 2009 at 11:04 AM, Kris Nuttycombe <[email protected] > wrote:
> Globals again? :( What kind of information do you want to pass? You could also put it in the snippet's attributes: <lift:subsnippet param="something" other_param="something_else"/> Also, RequestVars are not globals. They are scoped at the request level. The namespace for the RequestVar is global, but the instance is not global. > > > Guess I'll have to stick with chooseTemplate. > > > On Wed, Jan 14, 2009 at 11:50 AM, David Pollak < > [email protected]> wrote: > >> >> >> On Wed, Jan 14, 2009 at 10:48 AM, Kris Nuttycombe < >> [email protected]> wrote: >> >>> Oh, wow, somehow I'd missed that. This is something that I've definitely >>> been needing (and attempting to work around the perceived lack of.) >>> >>> But wait... is there any way for the inner snippet to get state from the >>> outer snippet? >> >> >> RequestVar >> >> >>> >>> >>> Thanks! >>> >>> Kris >>> >>> On Tue, Jan 13, 2009 at 11:05 AM, David Pollak < >>> [email protected]> wrote: >>> >>>> >>>> >>>> On Tue, Jan 13, 2009 at 9:50 AM, Charles F. Munat <[email protected]>wrote: >>>> >>>>> >>>>> David Pollak wrote: >>>>> > You can also write a snippet that may return XML that includes >>>>> > references to other snippets, so you can have a snippet that detects >>>>> > what kind of page you're on and if you're on a content page, the >>>>> snippet >>>>> > will return XML that invokes another snippet that pulls the data from >>>>> > the RDBMS. >>>>> >>>>> This sounds interesting. Are there any examples of this anywhere? >>>> >>>> >>>> >>>> http://blog.lostlake.org/index.php?/archives/54-lift-recursive-snippets.html >>>> >>>> >>>>> >>>>> >>>>> > Is this helpful or more confusing? >>>>> >>>>> We'll see... :-) >>>>> >>>>> Chas. >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Lift, the simply functional web framework http://liftweb.net >>>> Collaborative Task Management http://much4.us >>>> Follow me: http://twitter.com/dpp >>>> Git some: http://github.com/dpp >>>> >>>> >>>> >>> >>> >>> >> >> >> -- >> Lift, the simply functional web framework http://liftweb.net >> Collaborative Task Management http://much4.us >> Follow me: http://twitter.com/dpp >> Git some: http://github.com/dpp >> >> >> > > > > -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
