Fixes to variable dump.
This commit is contained in:
parent
9bd79b636d
commit
ca76cfa4bd
5 changed files with 40 additions and 27 deletions
|
@ -22,3 +22,7 @@
|
|||
padding: 1em 0;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.dump .var p {
|
||||
margin-bottom: .3em;
|
||||
}
|
||||
|
|
|
@ -3,14 +3,12 @@
|
|||
<#-- Template for dumping a template variable -->
|
||||
|
||||
<div class="var">
|
||||
|
||||
<h6>Variable name: <em>${var}</em></h6>
|
||||
<p><strong>Variable name: <em>${var}</em></strong></p>
|
||||
<#if value??>
|
||||
<strong>Type:</strong> ${type}<br />
|
||||
<strong>Value:</strong> ${value}<br />
|
||||
<p><strong>Value:</strong> ${value}</p>
|
||||
<p><strong>Type:</strong> ${type}</p>
|
||||
<#else>
|
||||
Variable is undefined in the data model
|
||||
</#if>
|
||||
|
||||
<p>Variable is undefined in the data model</p>
|
||||
</#if>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
<@dump var="fruit" />
|
||||
<@dump var="trueStatement" />
|
||||
<@dump var="zoo1" />
|
||||
<@dump var="pojo" />
|
||||
|
||||
${stylesheets.addFromTheme("/css/sstest.css", "/css/sstest2.css")}
|
||||
${scripts.addFromTheme("/js/jstest.js")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue