{"library":"rollup-plugin-handlebars","title":"rollup-plugin-handlebars","description":"A Rollup plugin that compiles Handlebars templates (.hbs) to JavaScript functions during the bundling process. Version 1.0.0 is the latest stable release, published only once in 2017. It allows importing .hbs files directly as template functions, with support for Handlebars compile options. Key limitation: no longer maintained, incompatible with modern Rollup v2+, and no TypeScript support.","language":"javascript","status":"abandoned","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-handlebars"],"cli":null},"imports":["import handlebars from 'rollup-plugin-handlebars';","const handlebars = require('rollup-plugin-handlebars');","import Handlebars from 'handlebars';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport handlebars from 'rollup-plugin-handlebars';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'cjs'\n  },\n  plugins: [\n    handlebars()\n  ]\n};\n\n// src/template.hbs\n<h1>{{title}}</h1>\n\n// src/index.js\nimport tmpl from './template.hbs';\nconsole.log(tmpl({ title: 'Hello' }));","lang":"javascript","description":"Demonstrates Rollup config with handlebars plugin and importing .hbs template as compiled function.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}