Wondering what’s next for npm?Check out our public roadmap! »

markitten

0.0.0 • Public • Published

markitten

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>"
 

Install

npm i markitten

DownloadsWeekly Downloads

1

Version

0.0.0

License

ISC

Unpacked Size

5.91 kB

Total Files

6

Last publish

Collaborators

  • avatar