@fluejs/txtag
v1.0.1
Published
Dynamic text templating utility
Readme
@fluejs/txtag
Small and lightweight library that helps you compile simple text templates. It can be useful for interpolation in dictionaries (e.g. i18n) or dynamic data substitution in text strings.
Installation
# npm
npm install --save-dev @fluejs/txtag
# yarn
yarn add -D @fluejs/txtagimport {compile} from '@fluejs/txtag';
compile('Hello, {name}!', { name: 'Joe' });
// result: "Hello, Joe!"