diff options
Diffstat (limited to 'doc/templates/template.html')
-rw-r--r-- | doc/templates/template.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/doc/templates/template.html b/doc/templates/template.html new file mode 100644 index 00000000..c24a83ef --- /dev/null +++ b/doc/templates/template.html @@ -0,0 +1,52 @@ +[[for temp in templates]] +<a name="link_[[temp['template_name']]]"></a> +<div id="template"> +[[if temp.has_key("mod_layer")]] + Layer: [[mod_layer]]<br> +[[end]] +[[if temp.has_key("mod_name")]] + Module: [[mod_name]]<br> +[[end]] +<div id="codeblock"> +[[exec i = 0]] +<b>[[temp['template_name']]]</b>( + [[for arg in temp['template_parameters']]] + [[if i != 0]] + , + [[end]] + [[exec i = 1]] + [[if arg['optional'] == 'yes']] + [ + [[end]] + [[arg['name']]] + [[if arg['optional'] == 'yes']] + ] + [[end]] + [[end]] + )<br> +</div> +<div id="description"> +[[if temp['template_summary']]] +<h5>Summary</h5> +[[temp['template_summary']]] +[[end]] +[[if temp['template_desc']]] +<h5>Description</h5> +[[temp['template_desc']]] +[[end]] +<h5>Parameters</h5> +<table border="1" cellspacing="0" cellpadding="3" width="80%"> +<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr> +[[for arg in temp['template_parameters']]] +<tr><td> +[[arg['name']]] +</td><td> +[[arg['desc']]] +</td><td> +[[arg['optional']]] +</td></tr> +[[end]] +</table> +</div> +</div> +[[end]] |