Comments (7)
Attributes are a good take on how to handle response types for controllers you control. I've used the current pattern to overwrite controller behaviour from CMS eg. Form submissions in these cases you may not be able to add attributes. But maybe having both options is optimal.
I'm not a huge fan of the current rendering mechanism either, I'd like to have a neater way of doing it. However I find that I'm not using it all that much if I try to structure my application to mostly use streams for very specific out of bounds swaps for frame requests then I can get away with including partial views depending on what data gets passed to my view components.
Of course i would still need the rendering service if the app uses Web sockets which kinda sucks.
from hotwired-dot-net.
Thanks man, swing by you wanna talk always fun to talk shop
from hotwired-dot-net.
@apfohl If you feel up for it, I would love a PR for the attributes π
from hotwired-dot-net.
I wonder how you can achieve this? I tried to implement it, but mainly the HtmlRenderer is available for rendering RazorComponents (Blazor). I mean Iβm not sure if itβs not possible, but it doesnβt look easy.
from hotwired-dot-net.
You are right. I wrote this issue before I did any research just as a reminder to myself.
I do still want to consider if there is any merit to supporting both types of components. But using blazor at all probably defeats the purpose of a Hyper media driven application
from hotwired-dot-net.
You are right. I wrote this issue before I did any research just as a reminder to myself.
I do still want to consider if there is any merit to supporting both types of components. But using blazor at all probably defeats the purpose of a Hyper media driven application
I agree, the concept of using Turbo is different to Blazer and serves a different purpose.
I would love to have a Stack using backend rendering and Turbo for Frontend updating.
I took my own Spin on it but lacking the ability to composing ViewComponents wich just C# in my controllers: https://github.com/apfohl/HotwiredBooks
A nice solution for this would be nice. That's why I tried the HtmlRenderer approach.
I also implemented the setting of the return type for TurboStreams as a Controller attribute and use only TagHelpers for composing TurboFrame and TurboStream responses.
from hotwired-dot-net.
I get you. This is kinda tricky to do. Will also try out some things for streaming. But nothing concrete at the moment.
Keep up the good work, it's inspiring. π
from hotwired-dot-net.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hotwired-dot-net.