-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for @code directive #6361
Comments
also, could we move them (by convention) to before instead of after the html? :) pure bikeshed, but i’ve been writing everything that way because it feels like the C# bits are the lower layer - you write those and then you reference them from the markup. it would also be more familiar to people coming from React because it’s akin to a render function which returns JSX. |
@gulbanana |
@rynowak I don't know much about VB but isn't |
yeah, i was thinking about templates and docs - i already handwrite stuff that way, with |
obviously it's incredibly unimportant where they go but this seems like the right time to make unimportant aesthetic decisions! |
@gulbanana This is not a community forum so you should create another issue for that and not hijack this unrelated issue. |
it's literally the issue for reviewing the design of the directive |
@gulbanana no it's not. What you are describing already works. Your issue is about default templates Microsoft provides. |
I agree "functions" is not a very good name. I don't know about "code" as html/js in the template is code as well and this is one of the most generic term out there : a google search for "blazor code error" would give results about vscode, or any code related to blazor. Maybe something that means that it's the definition of the class or the component behavior ("behavior" would be nice or "logic"). |
Why not do the same that aspnet Razor Pages with a nested page .csrazor to differentiate the HTML from code? |
We're going to enable that as well. We still want to try and make things better overall 😄 |
|
Do we want to use
@code
instead of@functions
?The text was updated successfully, but these errors were encountered: