1.1.2 • Published 7 years ago
supermicrotemplate v1.1.2
Usage
Really simple:
Node
const template = require('supermicrotemplate')
template(
'All _plc_ are replaced, even multiple _plc_. It is _sml_ and does one _thg_ well.',
{_plc_: 'placeholders', _sml_: 'small', _thg_: 'thing'})
Require.js
I'm not sure. If you use require.js you probably know how to load it. ;)
Browser
<script src="supermicrotemplate.js"></script>
<script>
supermicrotemplate(
'All _plc_ are replaced, even multiple _plc_. It is _sml_ and does one _thg_ well.',
{_plc_: 'placeholders', _sml_: 'small', _thg_: 'thing'})
</script>