[Solar-talk] Partials/Tiles/Elements/Components/Something
Andreas Ravnestad
andreas.ravnestad at gmail.com
Sat Nov 4 14:49:22 PST 2006
Hi and re - second time I'm subscribing now, hopefully with the right
email addy this time.
I've started using Solar as the base for porting some legacy
applications to MVC, and so far it works just great. Everything is sane :)
However, I've run into a (for me) very common problem - I want to render
partial content within a page layout, completely decoupled from whatever
controller is being executed. However, I want more than just rendering
some random template - I also want some logic to go with it. In Ruby on
Rails, it's called Partials. In CakePHP, it's called Elements. In
Struts, it's a taglib known as Tiles. I hope this is enough for you to
identify exactly what I want here :) Currently I am using helpers for
this, but I'm not too comfy with that.
Some examples of concrete use cases:
* A dynamic menu inside a page layout
* Comments directly attached to an article
* Photo streams and such (think flickr)
And the list goes on.
Is this possible in Solar? Where can I find more info to start using it?
If not, I would like to help adding this kind of functionality asap :)
-Andreas
More information about the solar-talk
mailing list