From 314b860b076dc5dcc973b83bd742f31eec034243 Mon Sep 17 00:00:00 2001 From: Egil Hansen Date: Sun, 5 May 2024 08:21:19 +0000 Subject: [PATCH] docs: clearer examples in routing.md --- docs/routing.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/routing.md b/docs/routing.md index 0716c09..169c1b8 100644 --- a/docs/routing.md +++ b/docs/routing.md @@ -11,9 +11,9 @@ The routing mode is determined by the presence or absence of [htmx headers](http ``` if ( HX-Request is null || ( HX-Boosted is not null && HX-Target is null ) ) - RoutingMode.Standard + RoutingMode.Standard else - RoutingMode.Direct + RoutingMode.Direct ``` Here's a detailed look at each mode: @@ -30,7 +30,7 @@ Example: ``` HTTP GET /my-page -App -> Routes --> MainLayout --> MyPage +App --> Routes --> MainLayout --> MyPage ``` ## Direct Routing @@ -42,8 +42,10 @@ If the target component has a `HtmxLayout` attribute, that layout is rendered fi Example: ``` +HTTP GET /my-htmx-page-with-layout +HtmxLayout --> MyHtmxPageWithHtmxLayout + HTTP GET /my-htmx-page -HtmxLayout --> MyHtmxPage MyHtmxPage ```