Created
February 28, 2018 11:08
-
-
Save haingdc/214ae3b54961928f9732d13d9b69307d to your computer and use it in GitHub Desktop.
A Gentle Introduction to Functional JavaScript: Part 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ponyToListItem = function(pony) { | |
var template = '<li><img src="{image}" alt="{name}"/>' + | |
'<div><h3>{name}</h3><p>{description}</p>' + | |
'</div></li>'; | |
return t(template, pony); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment