Package Exports
- text-template
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (text-template) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
text-template
A simple string template function based on named or indexed arguments
Example
var format = require("text-template")
var interpolate
// Format using an object hash with keys matching [0-9a-zA-Z]+
interpolate = format("Hello {{title}} , This is {{template.name}}, with version {{template.version}}", {{
title: "Hemant Kumar",
templatae : {
name : "text-template",
version : "1.0.0"
}
}})
// interpolate -> "Hello Hemant Kumar, This is text-template, with version 1.0.0"
## Installation
`npm install text-template`
## Contributors
- Hemant Kumar