egil / Htmxor

Supercharges Blazor static server side rendering (SSR) by seamlessly integrating the Htmx.org frontend library.
MIT License
118 stars 11 forks source link

HtmxRequestView component #1

Closed egil closed 4 months ago

egil commented 8 months ago

The idea is to provide a component similar to AuthorizeView that allows the user to render different content in a declarative way depending on whether a request is from HTMX or not.

Suggestion:

<HtmxRequestView>
  <FullPageContent>
    This only renders if this is not a htmx request.

    It can include the HtmxContent by referencing @context.HtmxContent
  </FullPageContent>
  <HtmxContent>
    This only renders when the request is made by Htmx
  </HtmxContent>
</HtmxRequestView>
egil commented 4 months ago

No longer relevant. Feature implemented via HtmxPartial.