NIHVIVO-564 Work on dump directive
This commit is contained in:
parent
86bdfaf1cd
commit
83938a2c19
11 changed files with 138 additions and 33 deletions
9
webapp/web/css/dump.css
Normal file
9
webapp/web/css/dump.css
Normal 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;
|
||||
}
|
|
@ -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>
|
|
@ -0,0 +1,6 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for dumping string values -->
|
||||
|
||||
${value}
|
||||
|
|
@ -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 />
|
|
@ -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")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue