| Issue 75: | Iteration over dictionary (patch) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Not sure how you prefer patches. Here's a tiny patch to enable iteration over dictionaries.
Aug 19, 2012
I actually added this: https://code.google.com/p/json-template/source/browse/jsontemplate_test.py (search for PairsFormatter) It's implemented as formatters on entire sections, which is a bit more general. I think you may not have the latest release (see the downloads section), which I don't think has the TODO about @name and @value. The downloads section here is the best place to get the stable code. I will document it better at some point, sorry for the duplication. doc/Design.txt has some skeletal notes on some new features. |
595 bytes View Download