cfmodule is great for encapsulating code from the calling template. If you
are familiar with Custom Tags, then it's easy to understand that cfmodule
treats the called template in the exact same way calling a Custom Tag would.
Any variables set in a Custom Tag (and a cfmoduled template) are not
available to the calling template unless you specifically scope the variable
to the caller scope.
cfmodule is more complicated to understand than cfinclude and for the most
part, you do not need to use cfmodule if you are just starting out with
ColdFusion. cfinclude will get you by just fine.
Good luck,
NAT
> -----Original Message-----
> From: Natasha Regehr [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 4:44 PM
> To: Fusebox
> Subject: <cfmodule> vs. <cfinclude>
>
>
> Hi,
>
> I am just learning how to use fusebox so keep that in mind if
> my questions
> seem kind of elementary to those of you who have been using
> fusebox for a
> while. Ok, I was reading a fusebox book and it stated that
> using cfmodule
> slows the program down, so the author suggested using
> cfinclude. If this is
> the case, then can you explain to me when and why you would
> use cfmodule
> instead of cfinclude?
>
> Thank you
>
> Natasha
> --------------------------------------------------------------
> ----------------
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
> s/fusebox or send a message to
> [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.