How to iterate over keys in a resource bundle in the FTL

<@hst.setBundle basename="commercialPropertyService"/>
       <#assign bundle = localizationContext.resourceBundle>
                 <ul>
                    <#list bundle.keys as key>
                      <li>${key} = ${bundle(key)}</li>
                    </#list>
                  </ul>

This is what I have at the moment, any insight would be very helpful I initially read https://groups.google.com/forum/#!topic/hippo-community/S4uZzHeQTUY, but I haven’t made much progress.

Thank you

Can you try this?

<#list bundle.keys as key>
  <li>${key} = ${bundle.getString(key)}</li>
</#list>

Still nothing, I am just getting the blank

    I am still fairly new to the hippo cms platform, did i set my resource bundle and assign it to the value correctly??

    How about this? I assume you have a resource bundle by the basename (commercialPropertyService) from either repository resource bundle or standard java resource bundle.

    <@hst.setBundle var="localizationContext" basename="commercialPropertyService" />
    <#assign bundle = localizationContext.resourceBundle>
    <ul>
      <#list bundle.keys as key>
        <li>${key} = ${bundle.getString(key)!}</li>
      </#list>
    </ul>
    

    That worked! Thank you so much