home *** CD-ROM | disk | FTP | other *** search
- <!--- This view-only example shows the use of CFMODULE --->
- <HTML>
- <HEAD>
- <TITLE>CFMODULE Example</TITLE>
- </HEAD>
-
- <BODY>
- <H3>CFMODULE Example</H3>
-
- <P>This example shows the use of CFMODULE to call a sample custom
- tag inline.
- <P>To activate this example, you will need to save the sample
- custom tag into a CustomTags/SampleTag directory under ColdFusion.
- <!---
- <!--- sample custom tag (save this in the cfusion\CustomTags directory --->
- <!--- as myTag.cfm. This tag takes two parameters, adds them and
- returns the result --->
- <CFSET X = attributes.x>
- <CFSET Y = attributes.y>
- <CFSET caller.result = x + y>
- <!--- end sample tag --->
-
- <!--- Call the tag with CFMODULE--->
- <CFMODULE
- NAME="myTag"
- X=3
- Y=4>
-
- <!--- show the code --->
- <CFOUTPUT>#HTMLCodeFormat(" <CFMODULE
- NAME='myTag'
- X=3
- Y=4>")#
- </CFOUTPUT>
- <P>The result: <CFOUTPUT>#result#</CFOUTPUT>
-
- --->
-
- </BODY>
- </HTML>
-