sindresorhus / pupa

Simple micro templating

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

template doesn't match camel case variables

Kikobeats opened this issue · comments

This is happening since v2.0.1...v2.1.0

const pupa = require('pupa')

const result = pupa('The mobile number of {name} is {opts.phoneNumber}', {
  name: 'Sindre',
  opts: {
    phoneNumber: '609 24 363'
  }
})

console.log(result) // => The mobile number of Sindre is {opts.phoneNumber}