framework
framework copied to clipboard
Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby
Listen to the [visibilitychange-event](https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event) and notify the server when it happens. Pseudo-code: ```js document.addEventListener("visibilitychange", () => { postCallback(sessionId, "visibilitychange", document.visibilityState); }); ``` And then on the server, the session could...
Some assets, like large images, may take some time to generate during build time. Since asset filenames are based on their content hash, it should be quite easy to store...
As a developer, it would be useful to be able to open some sort of devtools. These features would be useful: * [ ] A component tree similar to the...
It would be nice to have a language server that would provide some help. Some feature ideas: * Validating class names * Linting * Auto-completion for props * Auto-completion for...
Browsers accept invalid HTML and rearranges things into valid HTML. So: ```html ``` will turn into: ```html ``` This will make Mayu confused because there is a tbody where there...
Without testing there is no way to know if anything works. I'm thinking there could be page tests, component tests and store tests... I really like how [Testing Library](https://testing-library.com/docs/queries/about) does...
https://developer.chrome.com/docs/web-platform/navigation-api/ I think it would be possible to trigger the in-browser loading-spinner using this. Browser support is limited so needs to be abstracted to support both the new and the...
It would be very convenient to have the possibility to write markdown inside components: ```haml :markdown # Page title Hello [https://github.com](github). ``` A Markdown component was added here: https://github.com/mayu-live/framework/commit/b0bc61b1b081f9b4c4769df466fb9f985ed2b5c8#diff-3148da9280e00f837c9defe0acec0f9802b37c72fb02abe766cf0a3864d5c902 It...
Would be good to have a directory for static files like `favicon.ico` or `robots.txt`. `app/public/` maybe? Or `app/favicon.*` and `app/robots.txt`?
> In the past, JavaScript errors inside components used to corrupt React’s internal state and cause it to emit cryptic errors on next renders. These errors were always caused by...