Welcome the channel on the development of Cro, a set of libraries for building reactive distributed systems, lovingly crafted to take advantage of all the Raku Programming Language has to offer (cro.services). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
04:16 xinming left 04:17 xinming joined 07:22 Xliff joined
Xliff Hello! 07:22
If I'm serving static pages using "static 'static-data/content', @path" and want to have a custom handler deal with directory contents.. what would such a route handler look like? 07:24
07:24 sena_kun joined
Xliff If I'm serving static pages using "static 'static-data/content', @path" and want to have a custom handler deal with directory contents.. what would such a route handler look like? 07:24
08:08 Xliff left 08:17 Xliff joined 09:50 sena_kun left 12:41 jgaz left 12:42 jgaz joined 13:42 xinming left 13:44 xinming joined
jnthn Xliff: Hmm, you mean directory content listings? Think probably you'd need to explicitly form the path and do a `.d` check and serve the listing, and otherwise call `static`. I don't think there's anything build in for this. 15:38
*built-in
Xliff jnthn: So.. something like "get -> 'root', *@nodes { ... }" 16:33
jgaz On cro.services it looks like the links to the domains raku.courses and raku.consulting no longer work. Maybe the domains were not renewed? 16:40
jnthn Ah yes, keep meaning to remove those 16:41
jgaz I figured it was an oversight. 16:49
jnthn Xliff: Maybe something like `get -> 'root', *@nodes where 'static-data/content'.IO.&child-secure(@nodes.join('/').d { ... } 16:51
18:34 sena_kun joined 22:08 sena_kun left