You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've worked on a feature like this. For example, you can use recursively a YAML as a string to parse AND args object to replace.
consttampax=require('tampax');constyamlString=`dude: name: Arthurweapon: favorite: Excalibur useless: knifesentence: "{{dude.name}} use {{weapon.favorite}}. The goal is {{goal}}."`;constr=tampax.yamlParseString(yamlString,{goal: 'to kill Mordred'});console.log(r.sentence);// output : "Arthur use Excalibur. The goal is to kill Mordred."
Please merge pull request #11 , this will be very useful for me. Great module!
The text was updated successfully, but these errors were encountered: