Giter Club home page Giter Club logo

Comments (7)

krebil avatar krebil commented on September 15, 2024 1

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.

krebil avatar krebil commented on September 15, 2024 1

Thanks man, swing by you wanna talk always fun to talk shop

from hotwired-dot-net.

krebil avatar krebil commented on September 15, 2024 1

@apfohl If you feel up for it, I would love a PR for the attributes πŸ˜„

from hotwired-dot-net.

apfohl avatar apfohl commented on September 15, 2024

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.

krebil avatar krebil commented on September 15, 2024

@apfohl

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.

apfohl avatar apfohl commented on September 15, 2024

@apfohl

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.

apfohl avatar apfohl commented on September 15, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.