Skip to content

Commit

Permalink
adding comments and readme.txt for example
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenke committed Jan 1, 2010
1 parent fe7a3b9 commit 5325935
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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"> <cfsavecontent variable="test">
<html> <html>
<head> <head>
Expand Down Expand Up @@ -47,7 +52,7 @@
</cfsavecontent> </cfsavecontent>


<cfinvoke <cfinvoke
component="jtidy_cfc.jtidy" component="#componentPath#"
method="makexHTMLValid" method="makexHTMLValid"
strToParse="#test#" strToParse="#test#"
returnvariable="validxHTML" returnvariable="validxHTML"
Expand Down
3 changes: 3 additions & 0 deletions 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.