0

When creating custom schematics with @angular-devkit/schematics, is their a way to include a template file into another ?

I can't find documentation about this feature. I can't even find the template engine used.

Stéphane
  • 1,528
  • 14
  • 21

1 Answers1

0

After digging into the source code i've finally created my own include function function. It render the template and returns the result. I then pass this function to the template files and call it.

I've created a git repository demo https://github.com/scallacs/schematics-demo.

Stéphane
  • 1,528
  • 14
  • 21