amsul / template-literals

String templates using tagged template literals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

template-literals

String templates using tagged template literals

// Create a template
const template = tag `hi, ${'name'}!`

// Render the template
template({ name: 'amsul' }) // 'hi, amsul!'

About

String templates using tagged template literals


Languages

Language:JavaScript 100.0%