Skip to content

Instantly share code, notes, and snippets.

@timo
Created September 13, 2016 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/e674130436b94b1825170a7a369f20b1 to your computer and use it in GitHub Desktop.
Save timo/e674130436b94b1825170a7a369f20b1 to your computer and use it in GitHub Desktop.
timo@schmetterling ~/p/e/perl6.party (perl6-version)> perl6 -Ilib bin/app.p6
Too many positionals passed; expected 1 argument but got 2
in method install at /home/timo/perl6/install/share/perl6/site/sources/A1907C1BED80809C6FC16BB8693FE6BCD5769B7D (Bailador::Plugin::AssetPack::SASS) line 5
in submethod BUILD at bin/app.p6 line 23
in block <unit> at bin/app.p6 line 66
timo@schmetterling ~/p/e/perl6.party (perl6-version) [1]> git diff
diff --git a/bin/app.p6 b/bin/app.p6
index c73ebef..257b649 100644
--- a/bin/app.p6
+++ b/bin/app.p6
@@ -31,6 +31,8 @@ class Party is Bailador::App {
_ctemplate self, 'about.tt', :posts($posts.all), :active-page<about>;
}
+ self.get: '/exit$' => sub { exit }
+
self.get: rx{ ^ '/post/' (<[a..zA..Z0..9_.-]>+) $ } => sub (Str(Match:D) $name) {
return self.response.code: 404 unless .f and .r given "post/$name.md".IO;
my ($meta, $post) = $posts.serve: "post/$name.md";
timo@schmetterling ~/p/e/perl6.party (perl6-version)> git checkout
M bin/app.p6
Your branch is up-to-date with 'origin/perl6-version'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment