Adds support for scoping and Mustache

I added support for scoping and Mustache templates.