fast-nail-28668
07/23/2021, 5:40 PMgorgeous-ghost-95789
07/23/2021, 5:41 PMgorgeous-ghost-95789
07/23/2021, 5:42 PMgorgeous-ghost-95789
07/23/2021, 5:42 PMgorgeous-ghost-95789
07/23/2021, 5:43 PMmysterious-toddler-20573
07/23/2021, 6:10 PMfast-nail-28668
07/23/2021, 6:56 PMmysterious-toddler-20573
07/23/2021, 7:01 PMmysterious-toddler-20573
07/23/2021, 7:01 PMmysterious-toddler-20573
07/23/2021, 7:03 PMfast-nail-28668
07/23/2021, 7:09 PMmysterious-toddler-20573
07/23/2021, 7:13 PMadamant-exabyte-92636
07/23/2021, 7:13 PMfast-nail-28668
07/23/2021, 7:17 PMmysterious-toddler-20573
07/23/2021, 7:22 PMfast-nail-28668
07/23/2021, 7:27 PM@page directive to give it a url path, then dip into code with @code{...} as needed. It's really just controllers embedded within the page markup. But it keeps you a bit more honest. When either the code or the markup extends over a page, it's time to decompose. At least that's how we've been approaching the blazor apps we've written. I haven't written any "vanilla" razor components pages like i am doing here for this exercise.mysterious-toddler-20573
07/23/2021, 7:27 PMmysterious-toddler-20573
07/23/2021, 7:28 PMmysterious-toddler-20573
07/23/2021, 7:28 PMmysterious-toddler-20573
07/23/2021, 7:28 PMfast-nail-28668
07/23/2021, 7:29 PMLayout="_Layout" from the _ViewStart.cshtml page so that not every page gets wrapped in boilerplate <html>... but only the pages that you actually want to be pages. Then just drop blah.cshtml into the project, give them appropriate @page directives, and they render fragments of html with no worries. hx-trigger="load" did exactly what I thought it might. So there's zero friction so far.fast-nail-28668
07/23/2021, 7:31 PMHtml.Partial(...) most things you'd expect to be able to, in my experience. So I would guess the existence of the @page wouldn't affect that. I can't confirm though as I haven't done it yet. Just speculating.fast-nail-28668
07/23/2021, 7:40 PM@Html.Partial("Whatever.cshtml", null, null) then asp.net 5 just embeds your .cshtml file that has an @page directive into the other page. I'm not sure what else I would expect it to do, but I can confirm it doesn't mind the @page being there, so you'd be free to use fragments directly in htmx workflows, or as fragments when building up larger pages, either way.mysterious-toddler-20573
07/23/2021, 7:42 PMmysterious-toddler-20573
07/23/2021, 7:42 PMmysterious-toddler-20573
07/23/2021, 7:42 PMfast-nail-28668
07/23/2021, 8:44 PMmysterious-toddler-20573
07/23/2021, 8:57 PMmysterious-toddler-20573
07/23/2021, 8:57 PM