{
wtf.extend((models, templates)=>{
templates.pingponggame = function(tmpl, list){
let arr = tmpl.split('|')
list.push({template:'game', score:arr.slice(1)})
return arr[1] + ' to '+ arr[2]
}
})
let doc = wtf('he won the third match {{pingPongGame|13|2}}')
return {
text: doc.text(),
templates: doc.templates()
}
}