a barebones text templating engine for javascript (with tie-fighters)
npm install text-import-enginenpm i text-import-engine and import the module import Tie from "text-import-engine".Tie.render(string, object) it takes two arguments: the first being the string to be modified, and second being an object containing the data TIE should use to modify the aforementioned string. The syntax to show TIE where in the text these modifications should take place is simple |o| example |o| where 'example' is a key in the data object.hello |o| name |o| nice to see you again
const data = {name: 'jordan'}Tie.render('hello |o| name |o| nice to see you again
', data) hello jordan nice to see you again