Skip to content

Instantly share code, notes, and snippets.

@ErinCall
Created May 29, 2012 22:51
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 ErinCall/2831266 to your computer and use it in GitHub Desktop.
Save ErinCall/2831266 to your computer and use it in GitHub Desktop.
<script id="template-item" type="text/html">
<li class="template e2ma-get-new-template" data-id="${id}" data-name="${name}">
<span><img src="${image}" alt="${name}" title="${name}" /></span>
<p>${name}</p>
</li>
</script>
var browseAllTemplate = e2ma.template.direct_template( "template-item-browse", {
'image': 'https://www.google.com/images/srpr/logo3w.png',
'name': 'new template',
} );
$target.append(browseAllTemplate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment