refactor handling of amber to AddTemplateFile as the TODO note stated. U...

...sed switch statement to make it easier to add other template support