NIHVIVO-1336 Educational training short view
This commit is contained in:
parent
f56243ac7a
commit
be95a1bdd8
1 changed files with 14 additions and 0 deletions
14
webapp/web/templates/freemarker/lib/lib-sequence.ftl
Normal file
14
webapp/web/templates/freemarker/lib/lib-sequence.ftl
Normal file
|
@ -0,0 +1,14 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Macros for working with Freemarker sequences -->
|
||||
|
||||
<#-- Macro join: join array elements with the specified glue string. -->
|
||||
|
||||
<#macro join arr glue=", "><#compress>
|
||||
<#assign count = 0>
|
||||
<#-- This is VERY ugly: adding any formatting here inserts extra spaces into the output, even with the compress
|
||||
directive. The compress directive is also necessary, though. Seems counter to the documentation at
|
||||
http://freemarker.org/docs/dgui_misc_whitespace.html -->
|
||||
<#list arr as el><#if el?has_content><#if (count > 0)>${glue}</#if>${el}<#assign count = count+1></#if></#list>
|
||||
</#compress></#macro>
|
||||
|
Loading…
Add table
Reference in a new issue