Skip to content
/ pope Public
forked from poppinss/pope

Micro templating engine for strings only.

ignavan39/pope

 
 

Repository files navigation

Pope

Coverage Status

Pope is a fast, minimal and micro template engine for strings only, it plays well where you want to embed micro templates inside your module.

Upgrading from 1.x.x The version 2.0.x has a breaking change, where pope is not the default export, instead exported as a property on the object.

Earlier


const pope = require('pope')

Now


const { pope } = require('pope')

Examples

string interpolation

const { pope } = require('pope')
pope('There are {{count}} emails in your inbox', [20])

nested values

const { pope } = require('pope')
pope('My name is {{profile.name}} and age is {{profile.age}}', ['Bob', 26])

arrays only

const { pope } = require('pope')
pope('There are {{0}} emails in your inbox', [20])

About

Micro templating engine for strings only.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.5%
  • TypeScript 49.5%