Skip to content

JalexSocial/Rizzy

Repository files navigation

Rizzy: Asp.net and HTMX using Blazor's Razor component model

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 Razor components to create interactive user interfaces while providing a smooth frontend user experience through HTMX.

Documentation Site

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

Latest Updates

Version 3.0.1

  • Removed RzEditForm and RzFormContext
  • Added more native approach that allows for embedding Rz* components inside a standard EditForm

Version 3.0.0

  • Removed MVC-specific elements like Url and ActionContext from RzViewContext
  • Removed Newtonsoft dependency and switched to System.Text.Json single quote encoding for AlpineJs
  • Removed RzViewContext PageTitle
  • Preparing for integration with RizzyUI

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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published