Skip to content

Commit

Permalink
add template_inline example
Browse files Browse the repository at this point in the history
  • Loading branch information
librasteve committed Dec 3, 2024
1 parent 5de6800 commit ed5a20e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 51 deletions.
49 changes: 21 additions & 28 deletions META6.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
{
"auth": "zef:librasteve",
"authors": [
"librasteve"
],
"build-depends": [
],
"depends": [
"cro",
"Cro::WebApp",
"HTML::Functional"
],
"description": "blah blah blah",
"license": "Artistic-2.0",
"name": "Routes",
"perl": "6.d",
"provides": {
"Routes": "lib/Routes.rakumod",
"Routes::Examples::Click-To-Edit": "lib/Routes/Examples/Click-To-Edit.rakumod"
},
"resources": [
],
"source-url": "https://github.com/librasteve/raku-HTMX-Examples.git",
"tags": [
],
"test-depends": [
],
"version": "0.0.1"
}
"name": "Routes",
"description": "blah blah blah",
"version": "0.0.1",
"authors": [
"librasteve"
],
"auth": "zef:librasteve",
"depends": [
"cro",
"Cro::WebApp",
"HTML::Functional"
],
"build-depends": [],
"provides": {
"Routes": "lib/Routes.rakumod",
"Routes::Examples::Click-To-Edit": "lib/Routes/Examples/Click-To-Edit.rakumod",
"Routes::Examples::Template-Inline": "lib/Routes/Examples/Template-Inline.rakumod"
},
"license": "Artistic-2.0",
"source-url": "https://github.com/librasteve/raku-HTMX-Examples.git"
}
3 changes: 3 additions & 0 deletions lib/Routes.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ sub routes() is export {

use Routes::Examples::Click-To-Edit;
include click_to_edit => click_to_edit-routes;

use Routes::Examples::Template-Inline;
include template_inline => template_inline-routes;
}
}
24 changes: 1 addition & 23 deletions templates/navbar.crotmp
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
<:sub navbar>
<ol class="no-bullets"' hx-target="#content" hx-push-url="false" id="options">
<li><a href="/click_to_edit">Click to Edit</a></li>
<li><a href="/bulk_update">Bulk Update</a></li>
<li><a href="/click_to_load">Click to Load</a></li>
<li><a href="/delete_row">Delete Row</a></li>
<li><a href="/edit_row">Edit Row</a></li>
<li><a href="/lazy_loading">Lazy Loading</a></li>
<li><a href="/inline_validation">Inline Validation</a></li>
<li><a href="/infinite_scroll">Infinite Scroll</a></li>
<li><a href="/active_search">Active Search</a></li>
<li><a href="/progress_bar">Progress Bar</a></li>
<li><a href="/value_select">Value Select</a></li>
<li><a href="/animations">Animations</a></li>
<li><a href="/file_upload">File Upload</a></li>
<li><a href="/preserving_file_inputs">Preserving File Inputs</a></li>
<li><a href="/dialogs_browser">Dialogs - Browser</a></li>
<li><a href="/dialogs_uikit">Dialogs - UIKit</a></li>
<li><a href="/dialogs_bootstrap">Dialogs - Bootstrap</a></li>
<li><a href="/dialogs_custom">Dialogs - Custom</a></li>
<li><a href="/tabs_hateoas">Tabs (using HATEOAS)</a></li>
<li><a href="/tabs_hyperscript">Tabs (using Hyperscript)</a></li>
<li><a href="/keyboard_shortcuts">Keyboard Shortcuts</a></li>
<li><a href="/sortable">Sortable</a></li>
<li><a href="/updating_other_content">Updating Other Content</a></li>
<li><a href="/confirm">Confirm</a></li>
<li><a href="/template_inline">Template Inline</a></li>
</ol>
</:>

Expand Down

0 comments on commit ed5a20e

Please sign in to comment.