NIHVIVO-1563 Add template method models to dumpAll directive
This commit is contained in:
parent
4d413bc451
commit
c4da8ffc07
17 changed files with 229 additions and 61 deletions
|
@ -6,21 +6,30 @@
|
|||
|
||||
<h3>Data model dump for template <em>${containingTemplate}</em></h3>
|
||||
|
||||
<h4>VARIABLES</h4>
|
||||
|
||||
<h4>VARIABLES</h4>
|
||||
<ul>
|
||||
<#list models as model>
|
||||
<li>${model}</li>
|
||||
</#list>
|
||||
</ul>
|
||||
|
||||
<h4>DIRECTIVES</h4>
|
||||
|
||||
<ul>
|
||||
<#list directives as directive>
|
||||
<li>${directive}</li>
|
||||
</#list>
|
||||
</ul>
|
||||
<#if directives?has_content>
|
||||
<h4>DIRECTIVES</h4>
|
||||
<ul>
|
||||
<#list directives as directive>
|
||||
<li>${directive}</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
||||
|
||||
<#if methods?has_content>
|
||||
<h4>METHODS</h4>
|
||||
<ul>
|
||||
<#list methods as method>
|
||||
<li>${method}</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</#if>
|
||||
|
||||
<p><strong>Parameters: </strong>
|
||||
<#if params?? && params?keys?has_content>
|
||||
<#if params??>
|
||||
</p>
|
||||
<ul>
|
||||
<#list params?keys as param>
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for displaying directive help -->
|
||||
|
||||
<div class="directive">
|
||||
<p><strong>Method name:</strong> ${name}</p>
|
||||
|
||||
<#if returnValue??>
|
||||
<p><strong>Return value:</strong> ${returnValue}</p>
|
||||
|
||||
<#if comments??>
|
||||
<p><strong>Comments:</strong> ${comments}</p>
|
||||
</#if>
|
||||
|
||||
<p><strong>Parameters:</strong>
|
||||
<#if params??>
|
||||
</p>
|
||||
<ol>
|
||||
<#list params as param>
|
||||
<li>${param}</li>
|
||||
</#list>
|
||||
</ol>
|
||||
<#else>
|
||||
none</p>
|
||||
</#if>
|
||||
<br />
|
||||
|
||||
<p><strong>Examples:</strong></p>
|
||||
<#if examples??>
|
||||
<ul>
|
||||
<#list examples as example>
|
||||
<li>${example}</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
||||
|
||||
<#else>
|
||||
<p>No help available for this method.</p>
|
||||
</#if>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue