An open API service indexing awesome lists of open source software.

https://github.com/brianhicks/buildtemplate

a simple javascript string template
https://github.com/brianhicks/buildtemplate

Last synced: about 1 year ago
JSON representation

a simple javascript string template

Awesome Lists containing this project

README

          

buildTemplate
=============

Intro
-----

This is a small JS to take a template and return HTML (or whatever you like).

Usage
-----

templateLi = "

  • {%content%}
  • ";
    templateOptions = {
    "style": "li-style",
    "content": "Git rocks my socks."
    }
    buildTemplate(templateLi, templateOptions);

    outputs

  • Git rocks my socks.