Skip to content

ninbryan/markitten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markitten

NPM

UMD

let result = markitten.createElement(
  'div',
  '#special.sweet.classname',
  markitten.createElement('span', null, 'text')
);
result ===
  "<div id=\"special\" class=\"sweet classname\"><span>text</span></div>";

const div = markitten.createFactory('div');
const span = markitten.createFactory('span');
const br = markitten.createFactory('br');

result = div('nice', [span(null, 'cats'), br, br, span, br, span('', 'emptiness')]);
result ===
  "<div class=\"nice\"><span>cats</span><br/><br/><span/><br/><span class=\"\">emptiness</span></div>"

About

give me markup kittens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published