Skip to content

Instantly share code, notes, and snippets.

@librasteve
Created November 30, 2024 18:33
Show Gist options
  • Save librasteve/fc1396c8aa5fcc4e5cb3b7d79ddf82c7 to your computer and use it in GitHub Desktop.
Save librasteve/fc1396c8aa5fcc4e5cb3b7d79ddf82c7 to your computer and use it in GitHub Desktop.
Merry-Cromas.rakumod
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