{"library":"ejs-loader","type":"library","category":null,"description":"Webpack loader that compiles EJS templates using lodash/underscore's _.template function. Current stable version is 0.5.0, with maintenance releases every few years. Key differentiator from ejs-compiled-loader: it uses lodash/underscore template syntax, not the EJS templating engine. Requires ProvidePlugin for global '_'. Supports custom delimiters via options, and ES module export by default with an option to switch to CommonJS. The 'variable' option is required to avoid strict mode errors with ES modules.","language":"javascript","status":"active","version":"0.5.0","tags":["javascript","ejs","underscore","lodash","_","webpack","loader","template"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ejs-loader","imports":["const template = require('ejs-loader!./file.ejs');","const compiled = require('ejs!./file.ejs'); const html = compiled({ name: 'John' });","module.exports = { module: { rules: [ { test: /\\.ejs$/, use: ['ejs-loader'] } ] } };"]},{"cmd":"yarn add ejs-loader","imports":[]},{"cmd":"pnpm add ejs-loader","imports":[]}],"homepage":null,"github":"https://github.com/difelice/ejs-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ejs-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/ejs-loader/compatibility"}}