lefetmeofefet / htmel Goto Github PK
View Code? Open in Web Editor NEWMinimal HTML one-way binding library
License: MIT License
Minimal HTML one-way binding library
License: MIT License
Currently when style tag content is updated, the whole css inside is recalculated, that's bad for performance.
Instead, it's possible to change the style object directory: styleTag.sheet.cssRules[0].style.color="red".
Use cases to cover:
Support for the following syntax:
async function getStuff() {
...
}
html(state)`
<div>${() => getStuff()}</div>
`
Not sure how important this is as of now
Calling htmel
a lot of times can become slow, especiall if we're updating a list frequently, causing the whole list to be calculated and each item in the list calls htmel
.
Caching will save the extra time of processing the template. Basically, the flow is:
Allow inserting a json object as attribute dict. example:
let attrs = {class: "classname", style: "color: red"}
htmel()`<div ${attrs}>this will be red</div>`
When overwriting list, instead of deleting the whole list and adding the new one, only apply the diff.
Possible ways to achieve this:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.