Add the template example and finish testing

An example for the gjf file using mustache is added. And the templating
part of the code has been tested.