NIHVIVO-2425 Write autocomplete results to the response's writer directly without merging to a Freemarker template.

This commit is contained in:
ryounes 2011-03-28 19:23:19 +00:00
parent 3745c37cc9
commit 12e68942fc
2 changed files with 54 additions and 45 deletions

View file

@ -10,8 +10,8 @@
[
<#if results??>
<#list results as result>
<#-- result.label and result.uri are already quoted -->
{ "label": ${result.label}, "uri": ${result.uri} }<#if result_has_next>,</#if>
<#-- result.jsonLabel and result.jsonUri are already quoted -->
{ "label": ${result.jsonLabel}, "uri": ${result.jsonUri} }<#if result_has_next>,</#if>
</#list>
</#if>
]