1.0.1 • Published 5 years ago

at-template v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

at-template

Build Status npm version

JavaScript template engine with @{atSign} syntax.

Usage

  • @{variable} for string replacement
  • @@{variable} for escaping
const AtTemplate = require('at-template')
const template = AtTemplate.compile('Hello, my name is @{name}. I am from @{hometown}.')
const result = template({
  name: 'Fuji',
  hometown: 'Somewhere'
})

console.log(result)
// > Hello, my name is Fuji. I am from Somewhere

That's all.

1.0.1

5 years ago

1.0.0

5 years ago