Added minor templating feature and new examples for this.