Skip to content

⚡️🌱 Vite plugin for Twig, transforms twig templates into HTML

License

Notifications You must be signed in to change notification settings

vituum/vite-plugin-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb81c53 · Nov 17, 2023

History

14 Commits
Jun 27, 2023
Jun 27, 2023
Aug 13, 2022
Aug 25, 2022
Jun 27, 2023
Nov 17, 2023
Nov 17, 2023
Jun 27, 2023

Repository files navigation

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

About

⚡️🌱 Vite plugin for Twig, transforms twig templates into HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published