at-template
v1.0.1
Published
JavaScript template engine with @{atSign} syntax
Downloads
3
Readme
at-template
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.