@studimax/ts
v1.0.1
Published
A simple templating system
Downloads
19
Maintainers
Readme
@studimax/ts
A tiny template engine for JavaScript and TypeScript with no dependencies.
Installation
npm install @studimax/ts
# or
yarn add @studimax/ts
Usage
import ts from '@studimax/ts';
ts('Hello {world} !', {world: 'World'}) // Hello World !
ts('{a.small.hello} {a.big.world} !', {a: {small: {hello: 'hello'}, big: {world: 'WORLD'}}}) // hello WORLD !
ts('Hello {world} !', {}) // Hello {world} !