Hey Leslie, So to answer both your questions:
1- I only defined jquery because I though you said you want it to be the default one. Defining prototype is easy (I already tested it with both jquery and prototype) and I can put it in tonight when i get home (different code machines). As for what happens, well since we define the symbol as a defparameter it will get overwritten which is i think how it should be done. The reason is that if someone wants to add even more functionality to the definition they could and are not stuck with what we define. 2- For the namespace i think that is a good idea (i thought about it but i can not seem to remeber why i did not do it) I can easily do the change if you want although I would not go so far as specialized APIs since as i mentioned previously all "weblocks" API should be generic and each person will extend in his own library the way they want. Tell me what you think and if you want i can do it quickly. Regards, Mackram On Aug 7, 2:23 pm, "Leslie P. Polzer" <[email protected]> wrote: > On Aug 1, 11:21 am, Mackram <[email protected]> wrote: > > > Hey Leslie, no problem at all. Let me know if you want some help or > > anything. > > > Note that I am going to be kind of busy in the coming weeks so i might > > not have alot of time to work on the widget/view problem. > > > Let me know if you need anything. > > Two first observations: > > 1) > > diff -r 5822fd897401 -r 826cbaa2b428 examples/weblocks-demo/weblocks- > demo.lisp > --- a/examples/weblocks-demo/weblocks-demo.lisp Sat Jul 04 22:00:07 > 2009 +0300 > +++ b/examples/weblocks-demo/weblocks-demo.lisp Mon Jul 27 23:59:22 > 2009 +0300 > @@ -24,9 +24,20 @@ > "Access to a sandbox store in the session." > `(hunchentoot:session-value 'sandbox-store)) > > +(define-client-backend jquery :js-root "backends/jquery" > + :js-files `("jquery" > + "jquery-ui" > + "dialog-jquery" > + "weblocks-jquery" > + "jquery-delayedObserver" > "jquery-ui-autocomplete") > + :css-root "" > + :css-files `("main" "layout" "dialog" > "jquery-ui")) > > Weblocks should have the JQuery and Prototype backends defined out of > the box. > > Also, what currently happens when we have multiple definitions for a > backend? > > 2) namespacing > > We should structure the Weblocks API a bit. All elements should be > part > of a namespace/object named "Weblocks". Specialized APIs (e.g. Effect) > should probably have their own namespace beneath. > > So blindUpEffectById() will become Weblocks.Effect.blindUpById(). > > Leslie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" 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/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
