{"library":"rollup-plugin-underscorify","title":"rollup-plugin-underscorify","description":"A Rollup plugin (v1.0.0, single release) that converts Underscore templates into ES modules for use in Backbone/Marionette apps. Unlike other template compilers, it forces explicit namespace variable access (no `with` statement) to maintain ES2015 strict mode compatibility. Requires manual injection of Underscore or other libraries into template scope, as Rollup's module bundling can't guarantee global access. Minimal configuration with include/exclude patterns and custom variable name. Stable but essentially feature-complete.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-underscorify"],"cli":null},"imports":["import underscorify from 'rollup-plugin-underscorify'","import underscorify from 'rollup-plugin-underscorify'","underscorify({ include: ['**/*.tpl'], exclude: ['**/ignore.tpl'], variable: 'p' })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import underscorify from 'rollup-plugin-underscorify';\n\nexport default {\n  input: 'index.js',\n  output: { file: 'bundle.js', format: 'iife' },\n  plugins: [\n    underscorify({\n      include: ['**/*.tpl'],\n      variable: 'p'\n    })\n  ]\n};","lang":"javascript","description":"Shows minimal Rollup config using the plugin to compile .tpl files into Underscore template modules.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}