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>"
-
Notifications
You must be signed in to change notification settings - Fork 0
ninbryan/markitten
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
give me markup kittens
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published