Skip to content

aunz/simple-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-template

  • installation
npm i @aunz/simple-template -S
  • usage
import template from '@aunz/simple-template'

const text = template(`Eat {{fruit}} a {{duration}}, keep {{someone}} away`, {
	fruit: 'banana',
	duration: 'day',
	someone: 'doctors'
})

console.log(text)
//=> Eat banana a day, keep doctors away

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published