NIHVIVO-1304 Initial implementation of Widget directive. Requires two templates, one for assets and one for markup; would like to combine into a single template with two macros instead.

This commit is contained in:
rjy7 2010-11-10 19:50:28 +00:00
parent 3eed766716
commit 8dc645cfb6
18 changed files with 440 additions and 187 deletions

View file

@ -0,0 +1,69 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- FreeMarker samples -->
<h2>${title}</h2>
<h3>Dates</h3>
<ul>
<li>${now?datetime}</li>
<li>${now?date}</li>
<li>${now?time}</li>
</ul>
<h3>Apples</h3>
<ul>
<#list apples as apple>
<li>${apple}</li>
</#list>
</ul>
<h3>Fruit</h3>
<ul>
<#list fruit as f>
<li>${f}</li>
</#list>
</ul>
<p><strong>Animal:</strong> ${animal}</p>
<p><strong>Book Title:</strong> ${bookTitle}</p>
<h3>Zoo 1</h3>
<ul>
<#list zoo1.animals as animal>
<li>${animal}</li>
</#list>
</ul>
<h3>Zoo 2</h3>
<ul>
<#list zoo2.animals as animal>
<li>${animal}</li>
</#list>
</ul>
<p><strong>Berries: </strong>${berries}</p>
<@dump var="now" />
<@dump var="urls" />
<@dump var="fruit" />
<@dump var="trueStatement" />
<@dump var="zoo1" />
${stylesheets.addFromTheme("/css/sstest.css", "/css/sstest2.css")}
${scripts.addFromTheme("/js/jstest.js")}
${scripts.add("/js/script1.js", "/js/script2.js", "/js/script3.js")}
<@dumpAll />
<@help directive="dump" />
<@describe var="stylesheets" />
<@describe var="scripts" />
<@describe var="headScripts" />