Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeromeetienne/shorttag.js
javascript template engine - micro framework - 20 lines
https://github.com/jeromeetienne/shorttag.js
Last synced: about 1 month ago
JSON representation
javascript template engine - micro framework - 20 lines
- Host: GitHub
- URL: https://github.com/jeromeetienne/shorttag.js
- Owner: jeromeetienne
- Created: 2011-02-13T20:42:37.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-28T15:29:23.000Z (over 13 years ago)
- Last Synced: 2024-09-04T00:03:55.626Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 102 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# ShortTag.js
This is a basic templating system in node.js
* based on php shorttag/longtag
* *super simple* and *immediatly understandable*## TODO
* make a demo in browser and in node
* warning for user input sanatization
* shorttag.js doesnt do user input sanatization for you. If your data is coming
from a untrusted user, it is up to you to sanatize them.### To install
npm install shorttag
### example
Suppose you get the template being
> Let do an addition = 1+5 ?>
> Let do an addition = 1+5 ?>
> isnt that console.log("super") ?>?The result gonna be
> Let do an addition 6
> isnt that super?