Moving templating to underscore to support conditionals

cc @Raynos