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.
01:53 rypervenche_ left 02:10 rypervenche joined 10:04 sena_kun joined 12:01 patrickb left, patrickb joined 12:42 Xliff_ joined
Xliff_ I have a Cro application that has a route that uses the "static 'assets', 'mjs', @path, mime-types => 'application/javascript'" command. 12:44
Therefore all .mjs files in /assets/mjs should be returning a mime type of "application/javascript".
However an .mjs file that I have placed in the /assets/mjs directory is coming back as 'octet/stream' -- does someone have an idea of what I am doing wrong and any workarounds I can try? 12:45
How can I force the .mjs extension to be ANYTHING but
12:51 lizmat left 12:52 lizmat joined
jnthn My memory is a bit hazy, but I thought mime-types takes a hash of extension to type 13:20
Yeah, there's an example in cro.services/docs/reference/cro-ht...from_files 13:21
Xliff_ Yeah, I had to force it. 14:49
Happy new year, jnthn.
I think I have found a way to give users their choice of angled tags or their own brew in Cro::WebApp::Template::Parser. Would you be interested in the PR?
jnthn Happy new year! 15:19
Not quite sure what you're suggesting, can you give an example?
Xliff_ So, if you have a deathly fear of angled brackets in your .crotmp files... you can set an option... 16:37
and <.variable> can become ... [% .varible %] for example
I have the grammar working. Now I just need to ensure the ASTs are properly created. 16:38
And the API I have is probably very ... fiddly.
23:54 sena_kun left