[LRUG] Rails : Drying Up Views

Paolo Donà paolo.dona at seesaw.it
Tue Sep 11 12:29:13 PDT 2007


While working on the new Tabnav version I've started factoring out a few
more "widgets".
I ended up with a brand new plugin named "Widgets". Its goal is to provide
little useful helpers like the Tabnav... now we've got a few widgets up and
running: Tabnav, Navigation, ShowHide, Tableizer  and a few more are under
construction (Column Layouts, Tooltips, Nubbins ...)
I published a development version at svn://svn.seesaw.it/widgets/trunk and
will make it officially public during my next RailsConf Europe speech (be
patient.. just a week away!).
It's not a framework though...  so I'd be interested in  Tim's work  to see
if we can someway  share ideas about a more general widget implementation.

Tim: do you have public code I can check out?

The Widget plugin is not documented yet but you can find something
here<http://blog.seesaw.it/articles/2007/08/18/tabnav-retires-enter-widgets>
.

Alec: I remember your "Grid Widget" request from my Tabnav speech back in
April.. I'd like to do it, I'd just need you to specify what you expect from
it (eg: usage sample)

Paolo

On 9/11/07, Tim Cowlishaw <tim at timcowlishaw.co.uk> wrote:
>
> We've spent quite some time developing a framework for UI 'widgets', which
> are ruby classes with associated templates, css and javascript files, that
> can be instantiated anywhere in the view, across the whole application. I
> rather like this approach, as it encourages view code that has a sensible OO
> architecture - UI widgets can be subclassed from each other, and can mixin
> different interfaces, which saves a lot of repetition of code. We're going
> to try to package this framework up as a rails plugin sometime - more
> information should be forthcoming at devblog.playlouder.com if you're
> interested at some point.
>
> Cheers,
>
> Tim
>
> On 9/11/07, Anthony Green < Anthony.Green at bbc.co.uk> wrote:
> >
> >
> >
> > Does anyone have any techniques for sharing view code generators
> > (partials, helpers, yielding to content_for) across actions in different
> > controllers.
> >
> > I¹m finding most techniques blogged about only deal with situations
> > where
> > there is more commonality between view/actions within a controller than
> > view/actions (with the same name) across controllers.
> >
> >
> > --
> > Anthony Green
> > Client Side Developer - Programme Information Tool
> > Audio & Music Interactive
> > BBC Future Media & Technology
> >
> >
> >
> > http://www.bbc.co.uk/
> > This e-mail (and any attachments) is confidential and may contain
> > personal views which are not the views of the BBC unless specifically
> > stated.
> > If you have received it in error, please delete it from your system.
> > Do not use, copy or disclose the information in any way nor act in
> > reliance on it and notify the sender immediately.
> > Please note that the BBC monitors e-mails sent or received.
> > Further communication will signify your consent to this.
> >
> > _______________________________________________
> > Chat mailing list
> > Chat at lists.lrug.org
> > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> >
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>


-- 
Paolo Dona'
SeeSaw | Intuitive web stuff
http://www.seesaw.it
paolo.dona at seesaw.it
personal http://paolodona.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20070911/173eed8c/attachment-0007.html>


More information about the Chat mailing list