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.
03:00 Xliff_ left 06:51 summerisle is now known as eof
lizmat is there a simple Cro way to find out the current servers name / protocol being used, to be able to create a full URL referring to a page on the current website? 10:25
yes, I know I can use relative URL's, but if you want to make a function to copy a link to the clipboard, you need the whole thing 10:26
sena_kun lizmat, in a route handler? 10:44
lizmat well, when setting up a hash for a template to be rendered... 10:45
sena_kun lizmat, you can check `Location` header maybe? 11:04
erm, `Host` that is.
lizmat hmmm... 11:05
jnthnwrthngtn sena_kun: I'm guessing we somehow solve this in the link production PR that still needs finishing? 11:23
sena_kun jnthnwrthngtn, I don't remember if it handles host/protocol bits, but partially. 11:29
14:45 patrickb joined 17:17 Xliff joined
Xliff Hello. I'd like to compile a Cro::WebApp::Template into another Cro::WebApp::Template and then use the last one. What's the best way to go about doing that? 18:57
So ... .crotmp -> .crotmp -> html 18:58
19:06 sena_kun left, sena_kun joined
Xliff OK, better yet... what's the best way to "compile" a a Cro::WebApp::Template from a scalar? 19:41
20:09 patrickb left
japhb Xliff: I think the Cro team was working on being able to make an abstract template repo that you could fill as desired. Don't remember exactly what it was called, but maybe check the #cro logs? 20:17
Xliff japhb: Thanks for the info. I think I have what I need in Cro:: 20:18