update
This commit is contained in:
parent
f84280d330
commit
dedd7135f5
40
readme.md
Normal file
40
readme.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# @pushrocks/smartmustache
|
||||||
|
templates done right
|
||||||
|
|
||||||
|
## Availabililty and Links
|
||||||
|
* [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/smartmustache)
|
||||||
|
* [gitlab.com (source)](https://gitlab.com/pushrocks/smartmustache)
|
||||||
|
* [github.com (source mirror)](https://github.com/pushrocks/smartmustache)
|
||||||
|
* [docs (typedoc)](https://pushrocks.gitlab.io/smartmustache/)
|
||||||
|
|
||||||
|
## Status for master
|
||||||
|
[](https://gitlab.com/pushrocks/smartmustache/commits/master)
|
||||||
|
[](https://gitlab.com/pushrocks/smartmustache/commits/master)
|
||||||
|
[](https://www.npmjs.com/package/@pushrocks/smartmustache)
|
||||||
|
[](https://snyk.io/test/npm/@pushrocks/smartmustache)
|
||||||
|
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
[](https://prettier.io/)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Use TypeScript for best in class instellisense.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { SmartMustache } from '@pushrocks/smartmustache';
|
||||||
|
|
||||||
|
const mySmartmustache = new SmartMustache('my {{somePlaceholder}} are {{anotherPlaceholder}}!');
|
||||||
|
const appliedString = myTlt.applyData({
|
||||||
|
somePlaceholder: 'horses',
|
||||||
|
anotherPlaceholder: 'awesome'
|
||||||
|
});
|
||||||
|
|
||||||
|
// appliedString will be 'my horses are awesome!'
|
||||||
|
```
|
||||||
|
|
||||||
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
||||||
|
|
||||||
|
[](https://maintainedby.lossless.com)
|
Loading…
x
Reference in New Issue
Block a user