https://github.com/amsul/template-literals
String templates using tagged template literals
https://github.com/amsul/template-literals
interpolation string string-interpolation string-manipulation template template-literals
Last synced: 9 months ago
JSON representation
String templates using tagged template literals
- Host: GitHub
- URL: https://github.com/amsul/template-literals
- Owner: amsul
- Created: 2017-11-30T20:26:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T20:56:16.000Z (about 8 years ago)
- Last Synced: 2024-04-26T11:22:31.140Z (over 1 year ago)
- Topics: interpolation, string, string-interpolation, string-manipulation, template, template-literals
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# template-literals
String templates using tagged template literals
```js
// Create a template
const template = tag `hi, ${'name'}!`
// Render the template
template({ name: 'amsul' }) // 'hi, amsul!'
```