Generic script for creating templates using keys that will be replaced in your template