Skip to content

Instantly share code, notes, and snippets.

@mraerino
Last active March 27, 2018 22:40
Show Gist options
  • Save mraerino/bfefcaecfcc10f96b383b45522e91fad to your computer and use it in GitHub Desktop.
Save mraerino/bfefcaecfcc10f96b383b45522e91fad to your computer and use it in GitHub Desktop.
<script type="module">
function parseImpl(parts, ...values) {
const templ = document.createElement('template');
templ.innerHTML = parts[0].concat(values.map((val, key) => val + parts[key+1]).join(''));
return templ.content;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment