Created
November 30, 2024 18:33
-
-
Save librasteve/fc1396c8aa5fcc4e5cb3b7d79ddf82c7 to your computer and use it in GitHub Desktop.
Merry-Cromas.rakumod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Cro::HTTP::Router; | |
use Cro::WebApp::Template; | |
sub merry_cromas-routes() is export { | |
route { | |
template-location 'templates/merry_cromas'; | |
get -> { | |
template 'index.crotmp'; | |
} | |
get -> 'tree_me' { | |
template 'index.crotmp', :fragment<svg>, { }; | |
} | |
get -> 'bauble_up' { | |
template 'index.crotmp', :fragment<svg>, { :baubles }; | |
} | |
get -> 'star_bright' { | |
template 'index.crotmp', :fragment<svg>, { :stars }; | |
} | |
get -> 'illuminati' { | |
template 'index.crotmp', :fragment<svg>, { :baubles, :stars }; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment