From 0b3ba3de8e4f4b8ec1540d087930675385fa3f7b Mon Sep 17 00:00:00 2001 From: Ayan Banerjee Date: Sat, 2 Mar 2019 01:54:05 +0530 Subject: [PATCH] :sparkles: Expand the definition of template_type in targets section Closes https://github.com/moremoban/moban/issues/234 --- moban/mobanfile/targets.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/moban/mobanfile/targets.py b/moban/mobanfile/targets.py index 2e184dc9..0dde328f 100644 --- a/moban/mobanfile/targets.py +++ b/moban/mobanfile/targets.py @@ -33,7 +33,13 @@ def _handle_explicit_target(options, target): ) data_file = target.get(constants.LABEL_CONFIG, common_data_file) output = target[constants.LABEL_OUTPUT] + needs_ad_hoc = False template_type = target.get(constants.LABEL_TEMPLATE_TYPE) + if ( + constants.TEMPLATE_TYPES_OPTIONS in template_type or + constants.LABEL_EXTENSIONS in template_type + ): + needs_ad_hoc = True for src, dest, t_type in handle_template( template_file, output, options[constants.LABEL_TMPL_DIRS] ):