@vituum/vite-plugin-twig
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

npm package node compatility

⚡️🌱 ViteTwig

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

export default {
    plugins: [
        twig()
    ],
    build: {
        rollupOptions: {
            input: ['index.twig.html']
        }
    }
}
  • Read the docs to learn more about the plugin options.
  • Use with Vituum to get multi-page support.

Basic usage

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

or

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

Requirements

Readme

Keywords

none

Package Sidebar

Install

npm i @vituum/vite-plugin-twig

Weekly Downloads

310

Version

1.1.0

License

none

Unpacked Size

8.53 kB

Total Files

5

Last publish

Collaborators

  • evromalarkey