astaxie/beego — pull request #625 by mvpmvh (2014-05-31 04:56:00+00:00)
Title: Michael

So I ran into a situation where I thought it'd be nice to access application config values in templates, but I couldn't seem to find a way to do so. I added a templateFunc to address this situation. Can you please take a look at my changes and let me know what you think?

I also added a few more tests to config/json_test because I didn't know what would happen if you try to read a config value that didn't exist.