{"library":"twig-html-loader","type":"library","category":null,"description":"Webpack loader that compiles Twig templates into an HTML string using Twig.js. Version 0.1.9 is the latest stable release (last updated 2019). It integrates with webpack to process .twig files, supports data injection, caching, namespaces, and custom Twig extensions (functions, filters, tests, tags). Compared to alternatives like twig-loader, it returns raw HTML string rather than a compiled template function, which simplifies usage with html-webpack-plugin. Requires raw-loader as a peer dependency. Low maintenance cadence (no updates since 2019).","language":"javascript","status":"maintenance","version":"0.1.9","tags":["javascript","html","twig","loader","webpack","compile","plain"],"last_verified":"Wed May 27","install":[{"cmd":"npm install twig-html-loader","imports":["{ test: /\\.twig$/, use: ['raw-loader', 'twig-html-loader'] }","const HtmlWebpackPlugin = require('html-webpack-plugin');","data: (context) => { context.addDependency('./data.json'); return { /* ... */ }; }"]},{"cmd":"yarn add twig-html-loader","imports":[]},{"cmd":"pnpm add twig-html-loader","imports":[]}],"homepage":null,"github":"https://github.com/radiocity/twig-html-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/twig-html-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-html-loader/compatibility"}}