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.
08:57 Altai-man left 09:31 Altai-man joined
lizmat how can I use the <&HTML("foo")> functionality as a parameter to another sub? 12:33
<&foo(HTML("foo bar"))> doesn't seem to work ? 12:34
jnthnwrthngtn You can't
lizmat ok, maybe I should rephrase the question
how do I pass a string with HTML that I do not want to have escaped, to a :sub 12:35
jnthnwrthngtn Just pass it; the escaping doesn't happen at the sub passing boundary, it happens at the point the value is output.
12:36 sena_kun joined
jnthnwrthngtn e.g. with <$foo> or <.foo> 12:36
lizmat but I do *not* want it escaped 12:38
example of a tooltip: <&messages-input('User', 'ByNick', 'Filter on nick', 'Only show messages that are <em>not</em> written')> 12:39
jnthnwrthngtn Then in sub messages-input you would use <&HTML($param-name-of-final-argument)> 12:40
lizmat that's what I thought, but alas, no go :-( 12:42
lizmat inspects the HTML source 12:43
jnthnwrthngtn Really? I'm surprised; I'm sure I've done a similar structure multiple times before
lizmat Ah, it renders as: 12:44
<div title="Only show messages that are <em>not</em> written
so I guess it's the JS library that does this, taking it literally :-(
jnthnwrthngtn Looks like, although I'm not sure embedding bits of HTML inside of attributes is commonly done 12:46
lizmat yeah, I guess
jnthnwrthngtn But annoying if you wanted that :)
lizmat I guess it will be NOT rather than <em>not</em> then 12:47
Geth cro-http/link-gen-no-fork: 160f300857 | Altai-man++ | 2 files
Code cleanup (debug leftover, missing comments)
cro-http/link-gen-no-fork: 0d2da6aa60 | Altai-man++ | 2 files
Rework API a bit and do some minor cleanup
cro-http/link-gen-no-fork: 13e7019d7c | Altai-man++ | 2 files
Rework API a bit and do some minor cleanup
17:53 sena_kun left 18:12 Altai-man left 18:41 Altai-man joined