Socket
Socket
Sign inDemoInstall

@alchemy-js/transmute-ejs

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @alchemy-js/transmute-ejs

Transmute ejs with Alchemy


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
129 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 09 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc