Skip to content

Commit fac9ae7

Browse files
committed
Custom path for templates
1 parent 9756bb6 commit fac9ae7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main-core/templates-registry/templatesRegistry.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ export class TemplatesManager implements Mandarine.MandarineCore.ITemplatesManag
2020
if(engine == (null || undefined)) engine = Mandarine.Global.getMandarineConfiguration().mandarine.templateEngine.engine;
2121

2222
let manual: boolean = renderData.options != undefined && renderData.options.manual;
23+
//@ts-ignore
24+
let customPath: boolean = renderData.options != undefined && renderData.options.customPath;
2325

2426
if(!manual) {
25-
let fullPath: string = this.getFullPath(renderData.template);
27+
let fullPath: string = this.getFullPath(renderData.template, customPath);
2628
if(fullPath != (null || undefined)) {
2729
try {
2830
let context: Mandarine.MandarineMVC.TemplateEngine.Template = {

0 commit comments

Comments
 (0)