{"library":"rollup-plugin-emit-ejs","title":"rollup-plugin-emit-ejs","description":"Rollup plugin to emit files from EJS templates into the bundle output. Version 3.1.0 (stable, last updated 2021). This plugin uses Rollup's emitFile() method, allowing other plugins to process emitted files (e.g., minify HTML). It provides a basic layout system, automatic JavaScript and stylesheet linking via helper variables (javascripts, stylesheets, content), and supports any file type, not just HTML. Key differentiator: unlike rollup-plugin-bundle-html, it enables post-processing of emitted assets. Requires rollup ^2.10.0 as peer dependency. Ships TypeScript definitions.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-emit-ejs"],"cli":null},"imports":["import emitEJS from 'rollup-plugin-emit-ejs'","import type { Options } from 'rollup-plugin-emit-ejs'","import type { Plugin } from 'rollup'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport emitEJS from 'rollup-plugin-emit-ejs';\n\nexport default {\n  input: 'src/index.js',\n  output: { dir: 'dist', format: 'es' },\n  plugins: [\n    emitEJS({\n      src: 'src',\n      layout: 'src/layout.html.ejs',\n      data: {\n        title: 'My App',\n        body: 'Content goes here'\n      }\n    })\n  ]\n};","lang":"typescript","description":"Basic usage: emit an HTML file from EJS template with layout and data. Shows plugin config in rollup.config.js.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}