bobthecow/mustache.php — pull request #81 by anyonecancode (2012-02-24 17:58:11+00:00)
Title: Added functionality to generate hash of values from template

Hey - I had a need to do a reverse Mustache - take a template, and generate the hash of expected values. Useful for when a developer needs to quickly and easily know what values a template takes. I added this feature, but this is my first attempt at a pull request, so I'm not sure i'm doing this right - I originally did it in the master branch of my fork, but then realized I should maybe do it in the branch feature/makeHash. Not sure if pull requests are per branch or per repo, so I'm not entirely sure what you'll receive here.

Also, I wasn't sure what kind of unit tests would be appropriate, so that's missing. The example is a viewable example, which is different from what your examples look like - so feel free to take or leave that.

Hope this feature is helpful to others!