NIHVIVO-564 data model dump: add help for directives in the data model
This commit is contained in:
parent
2a50ff7f85
commit
8ccac59d4a
6 changed files with 96 additions and 13 deletions
|
@ -4,9 +4,9 @@
|
|||
|
||||
<div class="dump datamodel">
|
||||
|
||||
<h4>Data Model Dump for Template <em>${containingTemplate}</em></h6>
|
||||
<h3>Data Model Dump for Template <em>${containingTemplate}</em></h3>
|
||||
|
||||
<h5>Variables</h5>
|
||||
<h4>VARIABLES</h4>
|
||||
|
||||
<ul>
|
||||
<#list models?keys as key>
|
||||
|
@ -14,10 +14,13 @@
|
|||
</#list>
|
||||
</ul>
|
||||
|
||||
<h5>Directives</h5>
|
||||
<h4>DIRECTIVES</h4>
|
||||
<ul>
|
||||
<#list directives as directive>
|
||||
<li>${directive}</li>
|
||||
<#list directives?keys as directive>
|
||||
<li class="dump directive">
|
||||
<p><strong>Directive name:</strong> ${directive}</p>
|
||||
${directives[directive]!"no help available for this directive"}
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for dumping directive help -->
|
||||
|
||||
<p><strong>Usage:</strong> ${usage!}</p>
|
||||
|
||||
<#if comments??>
|
||||
<p><strong>Comments:</strong> ${comments}</p>
|
||||
</#if>
|
||||
|
||||
<h6>Parameters:</h6>
|
||||
<#if params?? && params?keys?has_content>
|
||||
<ul>
|
||||
<#list params?keys as param>
|
||||
<li><strong>${param}:</strong> ${params[param]}</li>
|
||||
</#list>
|
||||
</ul>
|
||||
<#else>
|
||||
<p>none</p>
|
||||
</#if>
|
||||
|
||||
<h6>Examples:</h6>
|
||||
<#if examples??>
|
||||
<ul>
|
||||
<#list examples as example>
|
||||
<li>${example}</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
Loading…
Add table
Add a link
Reference in a new issue