Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@alchemy-js/transmute-ejs

1.0.1 • Public • Published

Transmute ejs

Transmutes ejs for the Alchemy static site generator.

  • Transmutes file content to use ejs templates
  • File must contain front-matter with a valid layout property
    • layout: <templateName>.ejs
  • Should appear after any markdown transmutations (if applicable)
  • Options object accepts all valid ejs options

Installation

npm i @alchemy/transmute-ejs

API

This is a wrapper around the ejs package, accepting all valid options as an object.

const Alchemy = require('@alchemy-js/alchemy');
const ejs = require('@alchemy-js/transmute-ejs');
 
Alchemy({
  /* file paths */
}).clean()
  .transmute(ejs({
    /* accepts valid ejs options as an object */
    use: './layouts'
  })
  .build()

License

MIT

Install

npm i @alchemy-js/transmute-ejs

DownloadsWeekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

3.34 kB

Total Files

6

Last publish

Collaborators

  • avatar