<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Razor on Joey Gennari | Blog</title><link>http://gennari.industries/tags/razor/</link><description>Recent content in Razor on Joey Gennari | Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 30 Aug 2024 15:53:48 -0400</lastBuildDate><atom:link href="http://gennari.industries/tags/razor/index.xml" rel="self" type="application/rss+xml"/><item><title>Htmx Using Razor Components</title><link>http://gennari.industries/posts/htmx-with-razor-components/</link><pubDate>Fri, 30 Aug 2024 15:53:48 -0400</pubDate><guid>http://gennari.industries/posts/htmx-with-razor-components/</guid><description>&lt;p&gt;I love the simplicity of &lt;a href="https://htmx.org/"&gt;Htmx&lt;/a&gt; and the dev experience of &lt;a href="https://learn.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-8.0"&gt;Razor Components&lt;/a&gt;, so today I&amp;rsquo;m going to show you how to use both of them together. We&amp;rsquo;re going to be using the standard .NET 8 &lt;code&gt;webapp&lt;/code&gt; template, &lt;a href="https://learn.microsoft.com/en-us/aspnet/core/razor-pages/?view=aspnetcore-8.0&amp;amp;tabs=visual-studio"&gt;Razor Pages&lt;/a&gt; and layouts for the main pages, and Razor Components for the Htmx interactivity. This gives us the best of both simplicity worlds, using Razor pages for our overall app navigation and logic, and the templating an in-line code of Razor Components for our UX components.&lt;/p&gt;</description></item></channel></rss>