NIHVIVO-564 Work on dump directive

This commit is contained in:
rjy7 2010-07-27 21:49:40 +00:00
parent 86bdfaf1cd
commit 83938a2c19
11 changed files with 138 additions and 33 deletions

9
webapp/web/css/dump.css Normal file
View file

@ -0,0 +1,9 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
/* Styles for Freemarker template variable dump */
.dump {
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
padding: 5em 0;
}

View file

@ -0,0 +1,9 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for dumping string values -->
<ul>
<#list value as item>
<li>${item_index}: ${item}</li>
</#list>
</ul>

View file

@ -0,0 +1,6 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for dumping string values -->
${value}

View file

@ -0,0 +1,17 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for dumping a template variable -->
<hr />
<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 />
</div>
<hr />

View file

@ -49,6 +49,8 @@
<@dump var="now" />
<@dump var="urls" />
<@dump var="fruit" />
<@dump var="trueStatement" />
<@dump var="falseStatement" />
<@dumpDataModel />
${stylesheets.addFromTheme("/sstest.css", "/sstest2.css")}