-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add HtmxorComponentResult and HtmxorHtmlRenderer #41
base: main
Are you sure you want to change the base?
Commits on May 14, 2024
-
feat: Add HtmxorComponentResult and HtmxorHtmlRenderer
- Introduced `HtmxorComponentEndpointHost` class to act as a root component when executing a Htmxor Component endpoint. - Added `HtmxorComponentResultExecutor` class to execute the result of an HTTP request in the context of an endpoint. - Created `HtmxorComponentResult` class that renders a Razor Component. - Implemented `HtmxorComponentResultOfT` class, which is a generic version of `HtmxorComponentResult`.
Configuration menu - View commit details
-
Copy full SHA for 20fb6ec - Browse repository at this point
Copy the full SHA 20fb6ecView commit details -
docs: Update XML comments in HtmxorComponentResult and PropertyHelper
Updated the XML comments in two classes, HtmxorComponentResult and PropertyHelper. Removed the <see cref="..."/> tags for better readability and clarity. This change does not affect production code.
Configuration menu - View commit details
-
Copy full SHA for 618c73e - Browse repository at this point
Copy the full SHA 618c73eView commit details -
feat: Enhanced component mapping and rendering
Significant changes include: - Added new usings in Program.cs for Htmxor.Endpoints.Results and HtmxorExamples.Components.Pages. - Demonstrated the mapping of a page/component in Program.cs. - In HtmxorComponentResultExecutor.cs, refactored RenderComponentToResponse method to improve component rendering process. - Introduced GetFormHandler method in HtmxorComponentResultExecutor.cs to handle form requests. - Deleted the file HtmxorHtmlRenderer.cs as it was no longer needed.
Configuration menu - View commit details
-
Copy full SHA for 14d3aea - Browse repository at this point
Copy the full SHA 14d3aeaView commit details -
feat: Add HtmxorComponentResult and HtmxorHtmlRenderer
- Introduced `HtmxorComponentEndpointHost` class to act as a root component when executing a Htmxor Component endpoint. - Added `HtmxorComponentResultExecutor` class to execute the result of an HTTP request in the context of an endpoint. - Created `HtmxorComponentResult` class that renders a Razor Component. - Implemented `HtmxorComponentResultOfT` class, which is a generic version of `HtmxorComponentResult`.
Configuration menu - View commit details
-
Copy full SHA for cf9502c - Browse repository at this point
Copy the full SHA cf9502cView commit details -
docs: Update XML comments in HtmxorComponentResult and PropertyHelper
Updated the XML comments in two classes, HtmxorComponentResult and PropertyHelper. Removed the <see cref="..."/> tags for better readability and clarity. This change does not affect production code.
Configuration menu - View commit details
-
Copy full SHA for c72411c - Browse repository at this point
Copy the full SHA c72411cView commit details -
refactor: Improve attribute handling and simplify variable assignment
This update refines the process of retrieving custom attributes in HtmxorComponentEndpointHost, ensuring a more reliable order by introducing a priority system. This allows users to define a default HtmxLayout and override it on a component basis. In addition, the code in HtmxorComponentResultExecutor has been simplified by directly assigning the 'isBadRequest' variable within the conditional statement, reducing redundancy and improving readability.
Configuration menu - View commit details
-
Copy full SHA for 325261a - Browse repository at this point
Copy the full SHA 325261aView commit details