Skip to content
Browse files

adding comments and readme.txt for example

  • Loading branch information...
1 parent fe7a3b9 commit 532593578fdbbeef96a6a3626a940b67ca492136 @mhenke committed Jan 1, 2010
Showing with 9 additions and 1 deletion.
  1. +6 −1 example/index.cfm
  2. +3 −0 example/readme.txt
View
7 example/index.cfm
@@ -1,3 +1,8 @@
+<!--- see readme.txt for testing this example file --->
+
+<!--- component path to jtidy.cfc --->
+<cfset componentPath = "jtidy_cfc.jtidy" />
+
<cfsavecontent variable="test">
<html>
<head>
@@ -47,7 +52,7 @@
</cfsavecontent>
<cfinvoke
- component="jtidy_cfc.jtidy"
+ component="#componentPath#"
method="makexHTMLValid"
strToParse="#test#"
returnvariable="validxHTML"
View
3 example/readme.txt
@@ -0,0 +1,3 @@
+1) place index.cfm somewhere under your webroot
+2) replace the componentPath with the jtidy.cfc path
+3) run the page, you should have valid XHTML

0 comments on commit 5325935

Please sign in to comment.
Something went wrong with that request. Please try again.