Skip to content

Commit

Permalink
docs: improve _imports section
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed May 9, 2024
1 parent be708fe commit 744c36f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ To start fresh from a (new) Blazor Web App project, follow these steps:
+ <body hx-boost="true">
<Routes />

- <script src="_framework/blazor.web.js"></script>
- <script src="_framework/blazor.web.js"></script>
</body>

</html>
Expand Down Expand Up @@ -110,6 +110,7 @@ To start fresh from a (new) Blazor Web App project, follow these steps:
+ @using Htmxor
+ @using static Htmxor.Constants

+ @* only if adding a custom layout for using during direct requests in step 4 above *@
+ @attribute [HtmxLayout(typeof(HtmxorLayout))]
```

Expand Down Expand Up @@ -172,7 +173,7 @@ This allows `MyHtmxPage` to be rendered directly, optionally including a specifi

In Htmxor, conditional rendering supports the [template fragments](https://htmx.org/essays/template-fragments/) pattern.

It allows a single routable component to render specific parts for particular requests or the full content for others. This way, you can keep all related fragments within a single component, avoiding the need to split them into separate, individually routable components.
It allows a single routable component to render specific parts for particular requests or the full content for others. This way, you can keep all related fragments within a single component, avoiding splitting them into separate, individually routable components.

By consolidating the HTML into one file, it becomes easier to understand feature functionality, adhering to the [Locality of Behavior](https://htmx.org/essays/locality-of-behaviour/) design principle.

Expand Down

0 comments on commit 744c36f

Please sign in to comment.