-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.cfm
64 lines (45 loc) · 2.13 KB
/
index.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!--- get the available templates from the template folder --->
<cfparam name="form.outputDirectory" default="" />
<h1>ColdDoc</h1>
<p><a href="http://colddoc.riaforge.org/">ColdDoc</a> is a tool that has been built to generate documentation based on ColdFusion Component Meta Data.</p>
<p>This plugin will enables ColdDoc to generate documentation for your Wheels application, follow the instructions below.</p>
<p>REQUIRED: Drop colddoc inside the webroot folder in your Wheels application.</p>
<h2>Instructions</h2>
<ul>
<li>Select the type of ColdDoc to perform.</li>
<li>Select the strategy of ColdDoc to perform.</li>
<li>Click the "Generate" submit button.</li>
</ul>
<h2>Generate form</h2>
<cfif isDefined("form.typeOfColdDoc") and isDefined("form.strategyOfColdDoc")>
<cfoutput>
<cfsavecontent variable="href">
<cfif form.outputDirectory neq "">/#form.outputDirectory#</cfif>/#form.strategyOfColdDoc#/<cfif form.strategyOfColdDoc EQ 'html'>index.html<cfelse>colddoc.uml</cfif>
</cfsavecontent>
<p><tt>#generateColdDoc(form.typeOfColdDoc, form.strategyOfColdDoc, form.outputDirectory)#</tt></p>
<p><a href="#href#">Documentation #form.strategyOfColdDoc# Generated</a></p>
</cfoutput>
<cfelse>
<p><tt>Example: If your table is named "users", insert "user" in the form field below.</tt></p>
</cfif>
<!--- Form --->
<cfform action="#CGI.script_name & '?' & CGI.query_string#">
<p><label for="outputDirectory">Output Directory (leave blank to use webroot)</label> <br>
<input name="outputDirectory">
</p>
<p><label for="typeOfColdDoc">Type</label> <br>
<cfselect name="typeOfColdDoc">
<option value="everything" selected="selected">Model and Controller</option>
<option value="controller">Controller</option>
<option value="model">Model</option>
</cfselect>
</p>
<p><label for="strategyOfColdDoc">Strategy</label> <br>
<cfselect name="strategyOfColdDoc">
<option value="html" selected="selected">HTML</option>
<option value="uml">UML</option>
</cfselect>
</p>
<p><cfinput type="submit" name="btnSubmit" value="Generate"></p>
</cfform>
<a href="<cfoutput>#cgi.http_referer#</cfoutput>"><<< Go Back</a>