tagged-if
Installation
$ npm install tagged-if
Example
// without tagged-if
const example1 = `
${
(() => {
if (condition) {
return `then block string`
} else {
return `else block string`
}
})()
}
`
// with tagged-if
import { If } from 'tagged-if'
const example2 = `
${
If(condition)`then block string`
.Else`else block string`
}
`