Skip to content

Instantly share code, notes, and snippets.

@wataru420
Created June 26, 2013 02:44
Show Gist options
  • Save wataru420/5864364 to your computer and use it in GitHub Desktop.
Save wataru420/5864364 to your computer and use it in GitHub Desktop.
freemarkerでMapのデータを回す2+1の方法 ref: http://qiita.com/wataru420/items/08b9bc2b55a52293c824
<#assign h = {"name":"mouse", "price":50}>
<#list h?keys as key>
${key} = ${h.get(key)}
</#list>
<#list h.entrySet() as entry>
${entry.key} = ${entry.value}
</#list>
<#list h?keys?sort as key>
${key} = ${h.get(key)}
</#list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment