Eta

Laravel Mix extension for Eta template engine.
latest v0.3.0 - released
onjun_penguin
0 downloads last week
MIT license
1 version
ejs
template engine
embedded template engine
layouts
partials

Laravel-Mix-Eta

Laravel Mix extension for Eta. Eta is very similar to ejs, but supports templates and has some differences.

Installation

npm i -D mix-eta

Usage

Use mix.eta() with your webpack.mix.js. You can also add object data.

require('mix-eta');

const fs = require('fs');
const data = JSON.parse(fs.readFileSync('./data.json', 'utf8'));

mix.eta('src/**/[^_]*.eta', 'dest/', data /* Option */);
// mix.eta(GlobPattern, DestDir, Object?)

For more information on how to use the template, please read the Eta documentation.