0.2.0 • Published 5 years ago
nest-nunjucks v0.2.0
Installation
Firstly, you must to install
nunjucksnpm install nunjucks npm install @types/nunjucks --devWell! Now you can to install
nest-nunjucksnpm install nest-nunjucksRegister NunjucksModule in your root module, like this:
@Module({ imports: [ NunjucksModule.forRoot({ paths: [ "./template", "./template/partials", "./template/layouts", ], options: {}, }), ], }) export class AppModule {}Nunjucks module has 2 static methods for creating dynamic module:
forRootforRootAsync
TODO's
- Write this documentation