Vanilla Culture: Clean, unified DOM manipulation. Combine logic, structure, and styles without the framework bloat. Kalida Script. #2571
addller
started this conversation in
Mostre seu trabalho
Replies: 2 comments 2 replies
|
Interesting approach. Generating UI entirely from JavaScript can improve component organization and reduce HTML duplication, similar to how React, Vue, and other frameworks work. My main suggestion would be to clearly document the advantages over existing solutions, especially around maintainability, performance, learning curve, and debugging. Adding benchmarks and real-world examples would also help developers evaluate whether it's a good fit for their projects. |
1 reply
|
rapaz.... |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Following the Vanilla JS culture, I create Javascript library (Kalida Script) that creates HTML elements associated with a variable and a CSS style with a single instruction.
This approach allows you to create web applications using "99%" JavaScript, so that HTML files work by importing these scripts. Virtually no HTML elements are created in the HTML file; the most that is used is the body tag. The rest is all Javascript file imports.
The result is clean code, without HTML tag trees that make project maintenance difficult.
Since almost everything is done via Javascript, maintenance is much clearer and therefore easier.
An additional benefit is the identification of created elements through browser inspection, including the CSS style associated with that element in a clear and simple way.
Advice is welcome.
The library is available at: https://github.com/addller/kalida_script.git
Example available at: https://github.com/addller/kalida_framework.git
All reactions