3 ms·
This looks good, but it is not clear what the limitations are (says it works with a subset of PHP), how does this compare to say Laravel Livewire? It's also no
by dubcanada 5y ago
This looks good, but it is not clear what the limitations are (says it works with a subset of PHP), how does this compare to say Laravel Livewire?
It's also not clear how it works, the code examples are missing a lot of information.
For example you have Counter.php, and Counter.html, how are they connected? And then you use it as <Counter /> ?
- ivan_voitovych 5y agoThere is a documentation. In particular here https://viewi.net/docs/introduction https://viewi.net/docs/introduction you can read more about how it works, about the base idea and concept. About the limitations, some of them are described here https://viewi.net/docs/caveats https://viewi.net/docs/caveats and in general - you can't use functionality and features that are meant for server side only. Viewi is not the same as Livewire, it works differently and it's not tied to a specific framework. Counter php and HTML, the same name and location and you get yourself a component, nothing else is needed, use it as a tag, more here https://viewi.net/docs/components https://viewi.net/docs/components. I appreciate your questions, will work on improvements with the explanation and examples.