NIHVIVO-1564 Dump of template model objects provides information about methods and their return values

This commit is contained in:
rjy7 2011-02-21 21:40:43 +00:00
parent c17380deb8
commit f246cfe0cc
6 changed files with 118 additions and 69 deletions

View file

@ -0,0 +1,19 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for dumping a template model object -->
<#if properties?has_content>
<ul>
<#list properties?keys as property>
<li>${property}: ${properties[property]?html}</li>
</#list>
</ul>
</#if>
<#if methods?has_content>
<ul>
<#list methods as method>
<li>${method}</li>
</#list>
</ul>
</#if>

View file

@ -5,8 +5,8 @@
<div class="var">
<p><strong>Variable name: <em>${var}</em></strong></p>
<#if value??>
<p><strong>Value:</strong> ${value}</p>
<p><strong>Type:</strong> ${type}</p>
<div><strong>Value:</strong> ${value}</div>
<#else>
<p>Variable is undefined in the data model</p>
</#if>