NIHVIVO-1564 Improvements to dump of template model objects

This commit is contained in:
rjy7 2011-02-23 16:05:41 +00:00
parent af7d959ecd
commit e03f35a81c
7 changed files with 89 additions and 75 deletions

View file

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

View file

@ -3,12 +3,32 @@
<#-- Template for dumping a template variable -->
<div class="var">
<p><strong>Variable name: <em>${var}</em></strong></p>
<p><strong>Variable name: ${var}</strong></p>
<#if value??>
<p><strong>Type:</strong> ${type}</p>
<div><strong>Value:</strong> ${value}</div>
<p><strong>Value:</strong> ${value}</p>
<#-- Template model objects -->
<#if properties?has_content>
<p><strong>Properties:</strong></p>
<ul>
<#list properties?keys as property>
<li>${property}: ${properties[property]?html}</li>
</#list>
</ul>
</#if>
<#if methods?has_content>
<p><strong>Methods:</strong></p>
<ul>
<#list methods as method>
<li>${method}</li>
</#list>
</ul>
</#if>
<#else>
<p>Variable is undefined in the data model</p>
<p><strong>Value:</strong> null</p>
</#if>
</div>