Renamed Freemarker macro files. Implemented data input portion of main site admin page in Freemarker.
This commit is contained in:
parent
79da8d30ed
commit
fa247f1f79
11 changed files with 102 additions and 27 deletions
13
webapp/web/templates/freemarker/lib/lib-json.ftl
Normal file
13
webapp/web/templates/freemarker/lib/lib-json.ftl
Normal file
|
@ -0,0 +1,13 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Macros for json output -->
|
||||
|
||||
<#macro array data>
|
||||
[
|
||||
<#if data??>
|
||||
<#list data as obj>
|
||||
${obj.json}<#if obj_has_next>,</#if>
|
||||
</#list>
|
||||
</#if>
|
||||
]
|
||||
</#macro>
|
Loading…
Add table
Add a link
Reference in a new issue