Data model traverse
wkbutler <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hi - I know this has been asked before, but I have not seen an answer that seems to work for me. I am looking to discover the contents of the data model during template processing time, just for the purpose of setting up a debugging FTL template. Is there a constant keyword for the root of the model? I have seen .data_model used but for me that was an Environment object (and accessing .data_model.dataModel as I thought should have been possible, according to the freemarker.core.Environment API, result in an 'undefined' error). This thread asks the same question http://www.nabble.com/traverse-the-data-tree-td6874906.html#a6874906 and Attila mentions it's possible but unfortunately did not elaborate. Using <#recurse> is apparently valid but for me resulted in an error also. Thanks for any advice! -- View this message in context: http://www.nabble.com/Data-model-traverse-tp22710830p22710830.html Sent from the freemarker-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------