NIHVIVO-1304 Refactoring of widget code based on Brian Caruso's code review.

This commit is contained in:
rjy7 2010-11-12 18:02:06 +00:00
parent caa8bddf2b
commit 70e116c8bb
7 changed files with 112 additions and 73 deletions

View file

@ -1,5 +1,6 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<p>This is the test widget.</p>
<p>${fruit}</p>
<div class="testWidget">
<h4>This is the test widget.</h4>
<p>I like ${fruit}.</p>
</div>

View file

@ -0,0 +1,16 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Test widget -->
<#macro assets>
${stylesheets.add("/css/test.css")}
${scripts.add("/js/testscript.js")}
${headScripts.add("/js/testheadscript.js")}
</#macro>
<#macro markup>
<div class="testWidget">
<h4>This is the test widget.</h4>
<p>I like ${fruit}.</p>
</div>
</#macro>