@sheetbase/ejs-serverdeprecated

Ejs for Google apps script.

Usage no npm install needed!

<script type="module">
  import sheetbaseEjsServer from 'https://cdn.skypack.dev/@sheetbase/ejs-server';
</script>

README

Sheetbase Module: @sheetbase/ejs-server

Ejs for Google apps script.

License clasp Support me on Patreon PayPal Ask me anything

Install

  • Using npm: npm install --save @sheetbase/ejs-server

  • As a library: 1_mTEblCaR8CC6epwaMoz8rk-wep3k8TDfWFLBtefvOwke2tH7pZlr4YT

    Set the Indentifier to Ejs and select the lastest version, view code.

Examples

function example1(): void {
  const source: string = "<h1>Hello <%= name %>!</h1>";
  const data = { name: "world" };
  let html: string = Ejs.render(source, data);
  Logger.log(html);
}

Documentation

Homepage: https://github.com/mde/ejs

License

@sheetbase/ejs-server is released under the Apache-2.0 license.