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:32
lizmat_ joined
01:34
ecocode__ left
01:35
lizmat left,
ecocode__ joined
|
|||
Xliff | japhb: Thanks! | 02:11 | |
08:09
lizmat_ left,
TempIRCLogger left,
lizmat joined
08:10
TempIRCLogger joined,
Geth left
08:11
Geth joined
09:11
patrickb joined
|
|||
lizmat | question: is there a way to include a Cro template based on a variable setting ? | 14:10 | |
I guess not, as the template is compiled *before* it knows of any variables, right ? | 14:12 | ||
jnthnwrthngtn | Correct. | 14:43 | |
lizmat | so what would be the best way to produce a piece of text depending on a variable\s value? | 14:44 | |
basically: how do I most handily expose a hash with texts ? | 14:45 | ||
with the variable being the key ? | |||
14:50
Altai-man joined
14:52
Altai-man left
15:04
rypervenche left
15:21
rypervenche joined
15:58
patrickb left
|
|||
jnthnwrthngtn | Pass the hash into the template also and then index it? | 17:48 | |
e.g. <.texts{$key}> | |||
lizmat | well, yes, I came up with basically | 17:57 | |
sub descriptions($io) { $io.dir.map: { .basename => .slurp.chomp } } | 17:58 | ||
19:53
patrickb joined
20:45
patrickb left
|