Skip to content

Commit d6fb3bc

Browse files
author
KHOUBZA Younes
committed
add template factories
1 parent 9cf8344 commit d6fb3bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/flasher.ts

+4
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ export default class Flasher {
112112
}
113113

114114
public create(alias: string): FlasherInterface | undefined {
115+
if (0 === alias.indexOf('template.')) {
116+
return this.factories.get('template');
117+
}
118+
115119
return this.factories.get(alias);
116120
}
117121

0 commit comments

Comments
 (0)