Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/brianhicks/buildtemplate

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

Last synced: 6 days 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.