https://github.com/xakpc/razorhtmx
Razor Page with HTMX examples and try-outs
https://github.com/xakpc/razorhtmx
dotnet htmx razor-pages
Last synced: 7 months ago
JSON representation
Razor Page with HTMX examples and try-outs
- Host: GitHub
- URL: https://github.com/xakpc/razorhtmx
- Owner: xakpc
- Created: 2023-08-24T18:15:36.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T23:48:29.000Z (over 1 year ago)
- Last Synced: 2024-10-12T20:38:54.057Z (12 months ago)
- Topics: dotnet, htmx, razor-pages
- Language: SCSS
- Homepage: https://xakpc.info/series/htmx-dotnet
- Size: 344 KB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README


![]()
htmx is a great fit for dotnet - but not every dotnet stack is the best fit for htmx.
In this repo, I'm exploring how various techs work with htmx.
Read the series »
## About The Project

htmx is a js library that gives access to AJAX, CSS Transitions, WebSockets, and Server Sent Events directly in HTML, using attributes.
The library is built around "Hypermedia-Driven Application Architecture," which, in simple terms, could be described as "return HTML instead of JSON."Razor Pages extends ASP.NET Core MVC, making coding page-focused scenarios easier and more productive than controllers and views. Razor Pages group the action
(called a handler) and the viewmodel (called a PageModel) in one class and link it to a view. It uses a routing convention based on location and name in a Pages folder.
This tends to keep Razor Pages and its handlers smaller and more focused while at the same time making it easier to find and work with## Getting Started
- [RazorHtmx](https://github.com/xakpc/RazorHtmx/tree/master/Xakpc.RazorHtmx): usage of htmx with razor pages, reproduce of default htmx examples
- [MinimalAPIHtmx](https://github.com/xakpc/RazorHtmx/tree/master/Xakpc.MinimalApiHtmx): usage of htmx with Minimal API
- [RazorHtmx.Validation](https://github.com/xakpc/RazorHtmx/tree/master/Xakpc.RazorHtmx.Validation): exploration of various validation techniques with htmx## License
Distributed under the MIT License. See `LICENSE.txt` for more information.
## Contact
Author - [@xakpc](https://x.com/xakpc)
Project Link: [https://github.com/xakpc/RazorHtmx](https://github.com/xakpc/RazorHtmx)
Website: [https://xakpc.info/htmx-dotnet](https://xakpc.info/series/htmx-dotnet)