Fixes a localization issue and orders data more naturally

Hi,
Nice little tool you made here! It should be more popular.
I made those two commits that were quite critical for me, but I also have a few other ideas for this module.
For example, it could be cool to be able to "close" a template to hide the templates included during its rendering.