Closed azabroflovski closed 4 years ago
No, sorry. I don't plan to go down that (messy) road. If you don't need any method parameters. You can just make it a getter instead:
const template = 'Some string via { obj.method }'
const data = {
obj: {
get method() {
return 'great function'
}
}
}
pupa(template, data)
Hi, u can add support functions in templates?
Example: