NIHVIVO-1304 Rewrote widget framework to support a single template per widget, with multiple macros in each template file.
This commit is contained in:
parent
965f4c399b
commit
8a49574f7e
7 changed files with 88 additions and 63 deletions
|
@ -9,8 +9,16 @@
|
|||
</#macro>
|
||||
|
||||
<#macro markup>
|
||||
<#import "lib-list.ftl" as l>
|
||||
<div class="testWidget">
|
||||
<h4>This is the test widget.</h4>
|
||||
<h4>This is the test widget using macros.</h4>
|
||||
<p>I like ${fruit}.</p>
|
||||
</div>
|
||||
</#macro>
|
||||
|
||||
<#macro altMarkup>
|
||||
<div class="testWidget">
|
||||
<h4>This is the alternate version of the test widget.</h4>
|
||||
<p>I hate ${fruit}.</p>
|
||||
</div>
|
||||
</#macro>
|
Loading…
Add table
Add a link
Reference in a new issue