An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

![dotnet](https://img.shields.io/badge/dotnet-%23512BD4?style=for-the-badge&logo=dotnet)
![htmx](https://img.shields.io/badge/htmx-btw-black?style=for-the-badge&logo=htmx&labelColor=%233d72d7)





Logo


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

![demo](https://github.com/xakpc/RazorHtmx/assets/6075374/2dbe0a14-75ef-449e-aeae-35377fa3006b)

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

(back to top)

## 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.

(back to top)

## 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)


built with htnx