That is an important distinction to make, but...
My view objects are simply a OO interface to a alternative syntax template engine.
Knowing this, are you suggesting I simply switch the template type, if I need to putput RSS feed as opposed to an XHTML formatted LI of articles or blog entries...
Sorry my keyboard sucks so I cannot type equation marks to indicate proper punctuation.
EDIT | Lets assume an example, of a
controller:action pair.
1. Pull on the DB object and select all archived blog entries
2. Create view object and initialize with XHTML template
3. Execute template, inject results into layout, set reponse content
This action is mapped to a URI (obviously) such as
www.domain.com/blog/archives.html so would I not just introduce yet another controller:action for something like
www.domain.com/blog/archives.rss?
If I use the single controller:action how then, would I determine in the action whether to use an RSS template or XHTML template? If this is done in the view, how would the view know about which to display, as I fail to see any context of RSS or XHTML when using a single controller:action.
This is something that has been bugging me lately...what am I missing?
Cheers,
Alex