Fixing problem with FM dump directive. Working on SparqlQueryDataGetter.

This commit is contained in:
briancaruso 2012-02-29 19:51:33 +00:00
parent 558985d542
commit d9669acddb
8 changed files with 159 additions and 80 deletions

View file

@ -7,21 +7,23 @@
<div class="dump">
<h3>${title}</h3>
<@doDump dump />
<#-- dump has been changed to dumpValue to avoid confusion
with the dump directive which is stored in the DataModel as 'dump' -->
<@doDump dumpValue />
</div>
<#macro doDump dump>
<#if dump?keys?has_content>
<#macro doDump dumpValue>
<#if dumpValue?keys?has_content>
<ul>
<#list dump?keys as key>
<#list dumpValue?keys as key>
<li class="variable">
<p><strong>Variable name:</strong> ${key}</p>
<#local type = dump[key].type!>
<#local type = dumpValue[key].type!>
<#if type == "Directive" || type == "Method">
<@doMethod dump[key] />
<@doMethod dumpValue[key] />
<#else>
<@doTypeAndValue dump[key] />
<@doTypeAndValue dumpValue[key] />
</#if>
</li>
</#list>