liphte.ts - is fork of maveius/liphte library to write HTML tag in TypeScript and JavaScript Liphte TS is Lightweight & minimalistic HTML Builder/Generator (or maybe Template Engine) for JavaScript and TypeScript
It's lightweight and minimalistic html builder or dom builder based on inspired by projects rudykocur/pyeve and rudykocur/breve which is simplest way to create or generate html from controllers or Angular2 component.
. . .
<script type="text/javascript" src="node_modules/liphte.ts/dist/liphte.min.js"></script>
. . .
/** IMPORT **/
requirejs(['node_modules/liphte.ts/dist/liphte.min.js']); // When you are using require.js
...
/** USAGE **/
...
var T = liphte.tag;
document.write(
T.ul({id: 'list-id'},
T.li('First Element'),
T.li('Second Element'),
T.li('Third Element')
)
);
<ul id="list-id"><li>First Element</li><li>Second Element</li><li>Third Element</li></ul>
- Install by node package manager:
npm install liphte.ts
- Or download ZIP and unzip from GitHub:
wget https://github.com/maveius/liphte.ts/archive/master.zip
- Enjoy! Import library and use like in example.
- v1.0.1 : 11 November 2016:
- Fix and publish by NPM
- v1.0.0 : 11 November 2016:
- Initiated first NMP package and pubilished
- MIT