Skip to content

Instantly share code, notes, and snippets.

@subzey
Last active October 5, 2018 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subzey/87780b1f1c9361bd182ee7f84e4a40f2 to your computer and use it in GitHub Desktop.
Save subzey/87780b1f1c9361bd182ee7f84e4a40f2 to your computer and use it in GitHub Desktop.
import t from 'some-fancy-templater';
t`
<div class="container">
<h1>Ponies</h1>
<${PonyList}>
${ ponies.map(
({ name, type }) => t`
<${PonyItem} name="${name}" type="{type}"/>
`
) }
</${PonyList}>
</div>
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment