New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simple-template-engine

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-template-engine

Simple templating engine that takes arbitrary template files and populates with handler functions

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Build Status Coverage Status npm version Run on Repl.it

Simple Template Engine

Usage

var templeteEngine = require('./simple_templating_engine.js');
var template = "Hello, <% change_me %>";


var handler = function(key) { return { '<% change_me %>': 'World' } };
templeteEngine.populate(template, handler).then(populated => {
    console.log(populated);
});


handler = function(key) { return { '<% change_me %>': 'Async World' } };

(async function() {
  let populated = await templeteEngine.populate(template, handler);
  console.log(populated);
})();

Keywords

template

FAQs

Package last updated on 21 Apr 2020

Did you know?

Socket

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