On 2 Dec 2005, at 12:03, Tim Keating wrote:

-1 from me. As a *user*, I would much rather just generate random
content inside of my view code. I'd like to point out the cited example
(random photo on Flickr) can't be done with this technique, since this
is baked into the template.

Actually the Flickr front page photo is picked from a small subset of editorially approved pictures (with accompanying relevant quotes) so it could be done using the proposed tag.

I can certainly see your point (in another message) that the view function is a better place for this kind of random selection. However, some random behaviour is a presentation layer decision. If a site's designer decides they want the background of my page to be a random colour (this isn't unheard of, and if done right can actually work quite well) there's no reason they should have to ask a developer to change a view for them as it's a presentational feature.

Sure, it's not as clean-cut a distinction as we might want but when in doubt I favour solutions that give people more flexibility.

Cheers,

Simon


Reply via email to