-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Looking for HTML Builder? The project was renamed to Dom-Builder starting from version 3.0.0 for clarity. If you want to continue using the older
html-builder, use versions less than 3.0.0.
Dom-Builder is a modern JavaScript library designed for declarative construction and updating of DOM elements with simplicity and precision.
It is an evolution of html-builder, improving the API for better clarity, adopting an MVVM-friendly architecture, and providing a cleaner developer experience.
- The library is renamed to Dom-Builder to emphasize its focus on DOM manipulation.
- Removed the old
build()pattern — now declarative usage is default and simpler. - Added optional MVVM utilities such as
observable,computed, andreupdateto enhance state management. - Removed verbose
new HtmlItem(...)syntax, replaced with a concise, fluent$html.div(...)style API. - Smaller, faster, and completely framework-agnostic.
Dom-Builder is primarily browser-focused and intended to be used via direct <script> tags.
- Download the latest release from the Releases page.
- Or include via CDN:
<script src="https://cdn.jsdelivr.net/gh/Mubarrat/dom-builder@3.x/dist/dom.min.js"></script>-
dom-builderis a continuation ofhtml-builderstarting from version3.0.0. - No major breaking changes, but some API simplifications.
- The old
build()method is no longer needed. - The long-form
new HtmlItem(...)syntax has been removed — use the new concise$htmlsyntax. - MVVM-style utilities are newly introduced to improve state handling.
For more, see the Migration Guide.
Dom-Builder is released under the MIT License.
If you need any assistance or clarification on contributing, feel free to reach out by creating an issue.
Thank you for considering contributing to the Dom-Builder library!