Skip to content

⚡️💡 Vite plugin for Nunjucks, transforms njk templates into HTML

License

Notifications You must be signed in to change notification settings

vituum/vite-plugin-nunjucks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 17, 2023
d3ba486 · Nov 17, 2023

History

9 Commits
Jun 27, 2023
Jun 27, 2023
Aug 17, 2022
Aug 17, 2022
Jun 27, 2023
Nov 17, 2023
Nov 17, 2023
Jun 27, 2023

Repository files navigation

npm package node compatility

⚡💡️ ViteNunjucks

import nunjucks from '@vituum/vite-plugin-nunjucks'

export default {
    plugins: [
        nunjucks()
    ],
    build: {
        rollupOptions: {
            input: ['index.njk.html']
        }
    }

}
  • Read the docs to learn more about the plugin options.
  • Use with Vituum to get multi-page support.

Basic usage

or

<!-- index.njk with index.njk.json -->
{{ title }}

or

<!-- index.json  -->
{
  "template": "path/to/template.njk",
  "title": "Hello world"
}

Requirements

About

⚡️💡 Vite plugin for Nunjucks, transforms njk templates into HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published