Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    nunjucks-brunchpublic

    nunjucks-brunch

    Adds nunjucks support to brunch.

    Usage

    Install the plugin via npm with npm install nunjucks-brunch --save.

    Or, do manual install:

    • Add "nunjucks-brunch": "x.y.z" to package.json of your brunch app. Pick a plugin version that corresponds to your minor (y) brunch version.
    • If you want to use git version of plugin, add "nunjucks-brunch": "git@github.com:PxlBuzzard/nunjucks-brunch.git".

    Brunch plugin settings

    If customization is needed or desired, settings can be modified in your brunch config file (such as config.coffee):

    • templatePath: Default app/views. The top-level directory where your nunjucks templates are stored. Note: Windows users will want to use app\\views.

    • pathReplace: (RegExp) Default /^app(\/|\\)views(\/|\\).*.html$/. Sets the regular expression applied against the source file path to create the module name. Matched characters are removed.

    • Custom Variables: Any variable you define can be referenced in a nunjucks template. For example, {{ github_username }} would output to PxlBuzzard using the example below.

    Example:

    exports.config =
      ...
      plugins:
        nunjucks:
          github_username: 'PxlBuzzard'

    install

    npm i nunjucks-brunch

    Downloadslast 7 days

    8

    version

    0.3.3

    license

    MIT

    homepage

    github.com

    last publish

    collaborators

    • avatar