On Tue, Aug 4, 2009 at 7:44 PM, Elliott Sprehn<[email protected]> wrote:
...
> This is a job for... wait for it... Custom Tags! Huzzah. :)
>
> We encapsulate such things into widgets in the form of Custom Tags
> that are invoked inside the various views.
Sounds eerily like model renderers... ;-]
> I think people get very caught up trying to shoehorn everything into
> MG/{insert framework here} and forget that CF already solved their
> problem.
The problem of displaying data? J
I like custom tags because they have open and close logic, and you can
have child tags do stuff based on parent tags and whatnot. Powerful
mojo!
...
> The simplest solution is often the best one. cfhttp is your sledge
> hammer.
Fer sure! If you can get it through a request tho, generally, you can
get it without a request too ('cept for freaking ajax, neh? =]p)
If one does go the tag-based route, I'd recommend one actually use
CFCs and whatnot "behind" that custom tag, as it's not really a
repetition of code, and one might find one wants to do injection or
AOP or some-such... or, hey, Railo has CFC-based custom tags (does CF9
now too?), which are just plain bad-ass.
Whichever way one goes, there's one bit of advice I'm pushing like I'm
pushing version control: Tests! Tests are the bee's knees. The
cat's meow. Pure ambrosia, nectar of the gods.
--
It is with words as with sunbeams, the more they are condensed, the deeper
they burn.
--Southey
--~--~---------~--~----~------------~-------~--~----~
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en
-~----------~----~----~----~------~----~------~--~---