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:27
sjm__ joined,
sjm_ left
02:09
Pe_Elle joined
02:20
Pe_Elle left
02:25
Pe_Elle joined
|
|||
.landyacht. | Is there any way to prevent spaces from being generated in templates? Right now I am cramming tags together for this and it's quickly becoming unwieldy | 02:28 | |
the way space significance works in HTML makes this... frustrating to say the least | 02:30 | ||
02:32
Pe_Elle left
02:36
Pe_Elle joined
04:10
guifa left
04:47
Pe_Elle left
05:12
Pe_Elle joined
05:16
Pe_Elle left
05:46
Pe_Elle joined
06:36
Pe_Elle left
07:34
librasteve_ left
08:40
discord-raku-bot left,
discord-raku-bot joined
09:38
Pe_Elle joined
10:12
Pe_Elle left
10:13
Pe_Elle joined
10:38
sjm_ joined,
sjm__ left
10:41
sjm_ left
10:42
sjm_ joined
10:43
guifa joined
11:03
Pe_Elle left
11:04
sjm_ left
11:05
sjm_ joined
|
|||
librasteve | Rog - heres the low level generator code | 14:00 | |
method sequence-element:sym<literal-open-tag>($/) { my @elements = flatten-literals flat Literal.new(text => '<'), $<tag-element>.map(*.ast), Literal.new(text => '>'); make @elements == 1 ?? @elements[0] !! Sequence.new(children => @elements); } | |||
my initial guess is that (i) Cro Templates are not generating space between HTML tags when they are generated and (ii) there are no controls over space insertion - so not sure what Cro Templates are doing that you don't like | 14:02 | ||
please can you provide a good/bad example of the concern and post it on the GH repo issues | 14:03 | ||
PS. there is an internal control of trailing horizontal for generation $.trim-trailing-horizontal-before = False, but that is not documented so I would have to dig in to see what it does | 14:05 | ||
@.landyacht. ^^ please see my initial guess above... | 14:08 | ||
14:12
sjm_ left
|
|||
.landyacht. | Correct, the templates aren’t adding anything that isn’t there in the source. I just wish there were a way to have “insignificant” space in the source that doesn’t make its way into the output, e.g. for generating anchor tags immediately followed by punctuation like a period. I’m at work now but I can whip up a GH issue later | 14:14 | |
librasteve | example please ;-) | 14:17 | |
14:47
sjm_ joined
16:09
japhb left
16:22
japhb joined
16:34
japhb left
16:35
japhb joined
17:04
japhb left
17:05
Pe_Elle joined
17:07
Pe_Elle left
17:11
japhb joined
17:30
japhb left
17:54
japhb joined
18:17
Pe_Elle joined
18:21
Pe_Elle left
19:02
japhb left,
japhb joined
19:13
japhb left
19:15
sjm_ left
19:28
japhb joined
19:44
japhb left
19:50
japhb joined
20:04
japhb left
20:10
japhb joined
20:19
japhb left,
japhb joined
20:28
japhb left,
japhb joined
20:44
japhb left,
japhb joined
21:19
japhb left
21:21
japhb joined
|
|||
Geth | cro-webapp/main: 4663ec997d | librasteve++ | resources/prelude.crotmp add required attr to input tags |
21:34 | |
cro-webapp/main: bbf335cadd | librasteve++ | resources/prelude.crotmp Revert "add required attr to input tags" This reverts commit 4663ec997de3d59eda3e4fb46db11d3cd22a633b. |
21:38 | ||
librasteve | oops - sorry did a commit against main by mistake, resending as a PR | 21:39 | |
I have reverted main to prior | |||
22:47
japhb left
22:48
japhb joined
23:01
japhb left
23:02
japhb joined
|