NIHVIVO-1304 Refactoring of widget code based on Brian Caruso's code review.
This commit is contained in:
parent
caa8bddf2b
commit
70e116c8bb
7 changed files with 112 additions and 73 deletions
|
@ -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>
|
16
webapp/web/templates/freemarker/widgets/widget-test.ftl
Normal file
16
webapp/web/templates/freemarker/widgets/widget-test.ftl
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue