{"id":13417386,"url":"https://github.com/vituum/vite-plugin-twig","last_synced_at":"2025-04-22T23:32:11.299Z","repository":{"id":57749237,"uuid":"523770059","full_name":"vituum/vite-plugin-twig","owner":"vituum","description":"⚡️🌱 Vite plugin for Twig, transforms twig templates into HTML ","archived":false,"fork":false,"pushed_at":"2023-12-08T16:09:53.000Z","size":42,"stargazers_count":18,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T18:03:40.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vituum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-08-11T15:13:51.000Z","updated_at":"2024-10-18T16:42:24.000Z","dependencies_parsed_at":"2024-01-07T18:04:59.477Z","dependency_job_id":"a83e5fdd-7813-49d2-a259-b71b1e6f2a41","html_url":"https://github.com/vituum/vite-plugin-twig","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"06acceff0644015e7fd7c1a1aa68a0e162ca48e2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vituum%2Fvite-plugin-twig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vituum%2Fvite-plugin-twig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vituum%2Fvite-plugin-twig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vituum%2Fvite-plugin-twig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vituum","download_url":"https://codeload.github.com/vituum/vite-plugin-twig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250340362,"owners_count":21414537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T22:00:36.240Z","updated_at":"2025-04-22T23:32:11.050Z","avatar_url":"https://github.com/vituum.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Framework-agnostic Plugins"],"readme":"\u003ca href=\"https://npmjs.com/package/@vituum/vite-plugin-twig\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@vituum/vite-plugin-twig.svg\" alt=\"npm package\"\u003e\u003c/a\u003e\n\u003ca href=\"https://nodejs.org/en/about/releases/\"\u003e\u003cimg src=\"https://img.shields.io/node/v/@vituum/vite-plugin-twig.svg\" alt=\"node compatility\"\u003e\u003c/a\u003e\n\n# ⚡️🌱 ViteTwig\n\n```js\nimport twig from '@vituum/vite-plugin-twig'\n\nexport default {\n    plugins: [\n        twig()\n    ],\n    build: {\n        rollupOptions: {\n            input: ['index.twig.html']\n        }\n    }\n}\n```\n\n* Read the [docs](https://vituum.dev/plugins/twig.html) to learn more about the plugin options.\n* Use with [Vituum](https://vituum.dev) to get multi-page support.\n\n## Basic usage\n\n```html\n\u003c!-- index.twig with index.twig.json --\u003e\n{{ title }}\n```\nor\n```html\n\u003c!-- index.json --\u003e\n{\n  \"template\": \"path/to/template.twig\",\n  \"title\": \"Hello world\"\n}\n```\n\n### Requirements\n\n- [Node.js LTS (16.x)](https://nodejs.org/en/download/)\n- [Vite](https://vitejs.dev/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvituum%2Fvite-plugin-twig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvituum%2Fvite-plugin-twig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvituum%2Fvite-plugin-twig/lists"}