Dynamic Razor Content via JS #228
Unanswered
TheBrambleShark
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just sort of spitballing here because I'm not sure if this would even be possible. Take this sample page from the Blazor template. This creates a page called Counter which has a label and a button. When the button is clicked, the number shown in the label is incremented.
I think it would be interesting if for basic data binding examples like this, Javascript could be generated based on the provided C# that accomplishes the same functionality. This could quickly grow to be a rather large module, and is probably best done as its own extension to Statiq, but I wanted to at least toss the idea out and start some discussion.
Specifically, I think we should focus on these topics:
Beta Was this translation helpful? Give feedback.
All reactions