|
|
@ -27,7 +27,7 @@ function get_template_function(namespace, state) {
|
|
|
|
: contains_script_tag
|
|
|
|
: contains_script_tag
|
|
|
|
? '$.template_with_script'
|
|
|
|
? '$.template_with_script'
|
|
|
|
: '$.template'
|
|
|
|
: '$.template'
|
|
|
|
).concat(state.is_functional_template_mode ? '_fn' : '');
|
|
|
|
).concat(state.options.templatingMode === 'functional' ? '_fn' : '');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -75,7 +75,7 @@ export function transform_template(state, context, namespace, template_name, fla
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {Expression[]} */
|
|
|
|
/** @type {Expression[]} */
|
|
|
|
const args = [
|
|
|
|
const args = [
|
|
|
|
state.is_functional_template_mode
|
|
|
|
state.options.templatingMode === 'functional'
|
|
|
|
? template_to_functions(state.template)
|
|
|
|
? template_to_functions(state.template)
|
|
|
|
: b.template([b.quasi(template_to_string(state.template), true)], [])
|
|
|
|
: b.template([b.quasi(template_to_string(state.template), true)], [])
|
|
|
|
];
|
|
|
|
];
|
|
|
|