If you use a partial function tou can append or prepend another partial function with the same signature. That's what allows you to override default behavior. Examples in Lift would be addRewriteBefore/After, etc. In a plugin you would probably want an object (similar to LiftRules) that holds the default partial function as well as containing methods that would allow modification of the partial function.
Derek On Fri, Oct 24, 2008 at 6:44 AM, Tim Perrett <[EMAIL PROTECTED]> wrote: > > Hey guys, > > We had a discussion some time ago about plugins ( > > http://groups.google.com/group/liftweb/browse_thread/thread/a875258c5cccdf09 > ) - well i've started thinking about them again! > > I get everything in the previous thread, apart from one thing... how > through a 'plugin' you would supply some html content as a default and > then be able to override that with your own customized version > utilizing the same functionality? DPP mentioned using some kind > partial function to make this happen but im unsure what this might > look like or where / how it needs to be invoked. > > Any help / pointers welcome > > Cheers > > Tim > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
