NIHVIVO-564 Work on dump directive
This commit is contained in:
parent
83938a2c19
commit
b9ac586c20
5 changed files with 27 additions and 12 deletions
|
@ -1,9 +1,11 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for dumping string values -->
|
||||
<#-- Template for dumping array values -->
|
||||
|
||||
<strong>Type:</strong> array<br />
|
||||
<strong>Values:</strong><br />
|
||||
<ul>
|
||||
<#list value as item>
|
||||
<li>${item_index}: ${item}</li>
|
||||
<li>${item_index}: ${item}</li>
|
||||
</#list>
|
||||
</ul>
|
|
@ -0,0 +1,12 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for dumping hash values -->
|
||||
|
||||
<strong>Type:</strong> hash<br />
|
||||
<strong>Values:</strong><br />
|
||||
|
||||
<ul>
|
||||
<#list value?keys as key>
|
||||
<li>${key} = ${value[key]}</li>
|
||||
</#list>
|
||||
</ul>
|
|
@ -2,5 +2,6 @@
|
|||
|
||||
<#-- Template for dumping string values -->
|
||||
|
||||
${value}
|
||||
<strong>Type:</strong> ${type}<br />
|
||||
<strong>Value:</strong> ${value}<br />
|
||||
|
||||
|
|
|
@ -2,16 +2,14 @@
|
|||
|
||||
<#-- Template for dumping a template variable -->
|
||||
|
||||
<hr />
|
||||
<hr /> <#-- turn these into borders once css is working -->
|
||||
<div class="dump">
|
||||
|
||||
<h6>Freemarker template variable dump</h6>
|
||||
|
||||
<strong>Variable <em>${var}</em>:</strong><br/ >
|
||||
<strong>Type:</strong> ${type}<br />
|
||||
<strong>Value:</strong>
|
||||
<#include includeTemplate />
|
||||
<h6>Freemarker template variable dump</h6>
|
||||
|
||||
<strong>Variable <em>${var}</em>:</strong><br/ >
|
||||
<#include includeTemplate />
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<hr /> <#-- turn these into borders once css is working -->
|
Loading…
Add table
Add a link
Reference in a new issue