https://github.com/duart38/interpolate
Very simple (and small) text interpolator
https://github.com/duart38/interpolate
deno interpolation interpolator minimal observable regex replace-text type-safe typesafe
Last synced: about 2 months ago
JSON representation
Very simple (and small) text interpolator
- Host: GitHub
- URL: https://github.com/duart38/interpolate
- Owner: duart38
- License: mit
- Created: 2020-07-27T21:09:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-23T17:57:34.000Z (over 4 years ago)
- Last Synced: 2024-05-01T23:18:45.895Z (about 1 year ago)
- Topics: deno, interpolation, interpolator, minimal, observable, regex, replace-text, type-safe, typesafe
- Language: TypeScript
- Homepage:
- Size: 1.95 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Interpolate
Deno text interpolator## example
```JavaScript
let t = new Interpolation("hello {{first}} {{second}}");t.bind((dat)=>{
console.log("bound", dat)
})console.log(t.fill("first", "lovely"));
console.log(t.fill("second", "world"));
```