{"library":"twig-loader","type":"library","category":null,"description":"Webpack loader for pre-compiling Twig.js templates. Current stable version is 0.5.5. It compiles .twig files into JavaScript functions and automatically includes Twig.js runtime. Key differentiators: supports all Twig inheritance features (import, include, extends, embed) and resolves template dependencies statically. It is maintained by the community but has seen infrequent updates, with the last release in 2018. Requires webpack and the 'twig' package as peer dependency (~1.10.5).","language":"javascript","status":"maintenance","version":"0.5.5","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install twig-loader","imports":["module.exports = { module: { rules: [ { test: /\\.twig$/, use: { loader: 'twig-loader' } } ] } }","var template = require('./dialog.html.twig');\nvar html = template({title: 'dialog title'});","var twig = require('twig').twig;\ntwig({ id: 'my-template', data: template.tokens });"]},{"cmd":"yarn add twig-loader","imports":[]},{"cmd":"pnpm add twig-loader","imports":[]}],"homepage":null,"github":"https://github.com/zimmo-be/twig-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/twig-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/twig-loader/compatibility"}}