update rules for mustache to render the template properly