1.1.0 • Published 6 months ago

@vituum/vite-plugin-twig v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

⚡️🌱 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

1.1.0

6 months ago

1.0.0

11 months ago

1.0.0-beta.2

11 months ago

1.0.0-alpha.9

11 months ago

1.0.0-beta.1

11 months ago

1.0.0-alpha.7

11 months ago

1.0.0-alpha.6

11 months ago

1.0.0-alpha.4

11 months ago

1.0.0-alpha.3

11 months ago

1.0.0-alpha.2

11 months ago

1.0.0-alpha.1

11 months ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago