Socket
Book a DemoInstallSign in
Socket

nest-nunjucks

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nest-nunjucks

Nunjucks module for NestJS

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Installation

  • Firstly, you must to install nunjucks

    npm install nunjucks
    npm install @types/nunjucks --dev
    
  • Well! Now you can to install nest-nunjucks

    npm install nest-nunjucks
    
  • Register 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:

    • forRoot
    • forRootAsync

TODO's

  • Write this documentation

FAQs

Package last updated on 01 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts