hel
html-ejs-loader
npm i html-ejs-loader
hel

html-ejs-loader

EJS loader for webpack (without frontend dependencies)

by Vasily Ostanin

0.1.2 (see all)License:MITTypeScript:Not Found
npm i html-ejs-loader
Readme

ejs-compiled-loader for webpack

EJS loader for webpack. Uses ejs function to compile templates.

To use EJS by mde use 2.x branch and 2.x.x versions.

Installation

npm install ejs-compiled-loader

Usage

Documentation: Using loaders

var template = require("ejs-compiled!./file.ejs");
// => returns the template function compiled with ejs templating engine.

// And then use it somewhere in your code
template(data) // Pass object with data

// Child Templates
// path is relative to where webpack is being run
<%- include templates/child -%>

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Downloads/wk

6

GitHub Stars

126

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

14

OPEN ISSUES

13

OPEN PRs

8
VersionTagPublished
0.1.2
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial