They are almost the same.
cfmodule specifies the exact file and so is a little (negligibly) faster because it
doesn't have to look for the file first in the current directory and then in the
CustomTags directory.
cfmodule is also just a little "safer" in that you won't accidentally call the wrong
module because you meant to call the one in CustomTags but there was another different
copy of the file in the current directory. Yeah, I know, not likely.
So all things equal I tend to use cfmodule over cf_mytag.
At 09:32 AM 11/21/00 -0500, Paul Sinclair wrote:
>This is a simple one I guess. Are the following two snippets of code
>equivalent:
>
>1.
><cfmodule template="myCustomTag" attribute1=1 attribute2=2>
>
>2.
><cf_myCustomTag attribute1=1 attribute2=2>
>
>Is there any benefit to calling a tag one way or the other or am I totally
>off base about these being the same?
>
>Paul Sinclair
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Structure your ColdFusion code with Fusebox. Get the official book at
>http://www.fusionauthority.com/bkinfo.cfm
>
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
---------------------------------------------------------------------------
Peter Theobald, Chief Technology Officer
LiquidStreaming http://www.liquidstreaming.com
[EMAIL PROTECTED]
Phone 1.212.545.1232 x204 Fax 1.212.545.0938
To put this contact information into your Palm device, click here:
http://www.coola.com/cgi-bin/addinfo.cgi?pid=15803&rid=972879910&type=A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists