Skip to content

JalexSocial/Rizzy

Repository files navigation

Rizzy: Seamlessly blend the power of Razor Components with Asp.net and HTMX

Rizzy is a lightweight library that enhances Asp.net MVC applications by seamlessly integrating Razor components for UI development and working harmoniously with HTMX for progressive enhancement. With Rizzy, you can leverage the power of Razor components to create dynamic and interactive user interfaces while ensuring a smooth user experience through HTMX.

Documentation Site

For detailed documentation and examples, please visit the Rizzy Documentation Site.

Motivation

Razor Components vs. View Components

Traditional Asp.net MVC development often involves the use of View Components to create modular and reusable UI elements. While View Components serve their purpose, Razor Components offer several advantages:

  1. Code Reusability: Razor Components promote better code reuse by encapsulating both the UI and the code logic into a single component. This leads to cleaner and more maintainable code.

  2. Separation of Concerns: Razor Components follow a component-based architecture, separating concerns between UI and logic. This improves code organization and makes it easier to manage complex applications.

  3. Consistent Syntax: Razor Components use the same syntax as Razor views, making it easier for developers familiar with Asp.net MVC to transition and maintain a consistent coding style.

  4. Strongly Typed: Razor Components benefit from the strongly typed nature of C#, providing compile-time checking and improved developer productivity.

Why Rizzy?

Rizzy combines the strengths of Razor Components with the seamless integration of HTMX, offering a powerful solution for Asp.net MVC developers looking to enhance their applications with modern UI development practices.

Contributions

Contributions are welcome! If you encounter any issues, have feature requests, or would like to contribute to Rizzy, please open an issue or submit a pull request.

Contributors

  • Michael Tanczos
  • Egil Hansen
  • Khalid Abuhakmeh
  • Ryan Elian
  • .NET Foundation

Referenced Libraries

  1. Asp.net Client Validation - https://github.com/haacked/aspnet-client-validation

License

Rizzy is released under the MIT License.