I am wondering if anybody has a good suggestion on how to integrate a
tag library. Specifically, I am using Matt Quackenbush's Uniform tag
library QuackFuzed [ Ramblings of a Con..ColdFuzed Mind ] : Uni-Form Tag Library and
instead on calling on each of my Layout pages would like to just
implicitly have it available.
As I type this I realize I could also integrate via the
Application.cfc but really looking for a clean, maintainable solution.
Unfortunately it is the nature of CF to require the <cfimport/> in each template (cfm file) that uses the tags. If you do not do so then the code is skipped by the CF engine and passed to the browser as pure XHTML. Try it, and then view source on the rendered page.
Now then, I have not personally tried it, but you should be able to register the tags in your server (e.g. place them in the server's custom tag directory) and then use the <cf_tagname> syntax instead of the <uform:form> syntax. I just never do that bexause of portability.
If you go that route and find that it works well, can you put up a blog post about it? If you do, make sure and send me the link so I can add it to the docs pages.