underscore-template-loader
underscore-template-loader copied to clipboard
A Underscore and Lodash template loader for Webpack
I tried using the following config: ``` use: [{ loader: 'underscore-template-loader', query: { root: path.resolve(rootDir, 'public'), attributes: ['source:src'] } }] ``` Still, audio tags are not getting processed. Is anything...
I have a *header.html* template, It is used on every page, and each page has some differences. This is easy to implement if I can pass some parameters in require...
My project is used to use the gulp + jestify to compile the html template. After switch to webpack +underscore-template-loader, I notice some of the pages are messed up because...
Hello, I'm using underscore-template-loader: ^0.8.0 and webpack Special characters are wrong displayed in my web application. Encoding of the index page is fine, UTF-8 I have an HTML like this:...
Hello, using the loader with webpack 2.5.1 and `html-webpack-plugin` like this (excerpt from `webpack.dev.config.js`): ```javascript plugins: [ . . . new HtmlWebpackPlugin({ filename: 'index.html', template: 'underscore-template-loader!index.ejs', inject: true }), ....
It doesn't look like this is currently supported by the loader, but please correct me if I'm wrong! In my webpack.config.js ``` js resolve: { alias: { // Allow friendly...
The fix is a really small one, it just takes care of adding `_` as the first imported symbol. For testing I had to actually load the generated module to...
An interesting bug arises when both engine and imports are used: imports are correctly loaded from the specified engine and passed to the template function, but the `_` symbol inside...
Thanks for a great webpack plugin! I recently refactored some code using this loader to no longer require the use of lodash's `templateSettings.imports` (and thus the `engine` config property) and...
When using the escape feature of lodas/underscore templates I receive "ERROR in ReferenceError: _ is not defined" ```