bitlogist / webity

Advanced Web SSR!
MIT License
4 stars 0 forks source link

Component Binding & Inclusion Parameters #1

Open intfract opened 1 year ago

intfract commented 1 year ago

This framework is perfect for dynamic SSR but there is room for improvement. The components work, but I can't pass any parameters apart from innerHTML into slots. It would be nice to have attributes that bind or render the component in a specific way.

<component label="Component">
  innerHTML
</component>

The idea is rendering components dynamically so that code can be reused effectively with minimal JavaScript. It saves developers from making AJSON requests and making the user wait for content.

bitlogist commented 1 year ago

Props are almost out. I am tweaking the web-for attribute that allows you to render elements iteratively.

intfract commented 1 year ago

Props are actually overpowered with the loop function. Components are so godly with props. However, the inline script stuff seems a bit fishy. It may need some bug fixing.