nanohtml
html-dox
Our great sponsors
nanohtml | html-dox | |
---|---|---|
2 | 2 | |
680 | 6 | |
0.6% | - | |
0.0 | 7.7 | |
over 1 year ago | 9 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nanohtml
-
$$maintainable.code()
Or use a templater like nanohtml that lets you pass callbacks into the literals
-
meaning of = , , in javascript
function insertNodeAtSelection(node, shouldInsertBeforeRange) { const range = window.getSelection().getRangeAt(0); range.collapse(shouldInsertBeforeRange); range.insertNode(node); } function parseHtml(html) { const fragment = document.createDocumentFragment(); const element = document.createElement("div"); element.innerHTML = html; while (element.firstChild) { fragment.appendChild(element.firstChild); } return fragment; } // Example usage: insertNodeAtSelection(parseHtml("test")); // or using something like https://github.com/choojs/nanohtml: insertNodeAtSelection(html`test`);
html-dox
What are some alternatives?
SPA - A super lightweight framework for building Single Page Apps in pure JavaScript. A perfect solution for building a prototype, mvp, app, website, blog, forum or anything else.
hygraph-examples - Example projects to help you get started with Hygraph
Aris - Aris - A fast and powerful tool to write HTML in JS easily. Includes syntax highlighting, templates, SVG, CSS autofixing, debugger support and more...
Q.js - simple and minimal javascript library for dom
packages - 💎 Monorepository for Stylify packages. Stylify uses CSS-like selectors to generate Extremely optimized utility-first CSS dynamically based on what you write 💎.
CalDOM - An agnostic, reactive & minimalist (3kb) JavaScript UI library with direct access to native DOM.
obsidian - ✨ Elegant portfolio template built on NextJS and Tailwind.