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
- Host: GitHub
- URL: https://github.com/brianhicks/buildtemplate
- Owner: BrianHicks
- Created: 2010-08-19T19:54:36.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-08-19T19:55:35.000Z (almost 16 years ago)
- Last Synced: 2025-04-02T06:07:43.209Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 = "
templateOptions = {
"style": "li-style",
"content": "Git rocks my socks."
}
buildTemplate(templateLi, templateOptions);
outputs