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. |
|||
00:43
Pe_Elle joined
01:25
Pe_Elle_ joined
01:29
Pe_Elle left
09:18
lizmat_ joined
09:21
lizmat left,
lizmat_ left,
lizmat joined
10:39
Pe_Elle_ left,
Pe_Elle joined
10:46
Pe_Elle left,
Pe_Elle joined
11:58
Pe_Elle left
11:59
Pe_Elle joined
12:04
Pe_Elle left
12:34
Pe_Elle joined
12:39
Pe_Elle left
13:08
Pe_Elle joined
13:09
Pe_Elle left
13:12
Pe_Elle joined,
Pe_Elle left
13:13
Pe_Elle joined
13:14
Pe_Elle left
13:17
Pe_Elle joined
13:24
Pe_Elle left,
Pe_Elle joined
13:34
Pe_Elle left
14:21
Pe_Elle joined
14:26
Pe_Elle left
|
|||
SmokeMachine | Hi! I'm planing on creating a new Cromponent method called URL and if you have a cromponent called Todo (for example: github.com/FCO/Cromponent/blob/mai...o.rakumod) and you do: Todo.URL, it would return: "/todo", if you do: Todo.new(:1id).URL, it would return "/todo/1" and if you do: Todo.new(:1id).URL: "toggle" it will return "/todo/1/toggle". That's very easy to be done because those routes are already added to | 14:48 | |
Cro by the cromponent itself. | |||
14:51
Pe_Elle joined
|
|||
SmokeMachine | my problem is if that route is added from inside a include (like here: github.com/FCO/Cromponent/blob/mai...s.raku#L12 github.com/FCO/Cromponent/blob/mai...akumod#L9) . Is there a way to, from the handler, know the @prefix included? or will I need to add a :@prefix to my URL method? That would couple too much the component with the route... | 14:52 | |
14:57
Pe_Elle left
15:11
Pe_Elle joined
|
|||
librasteve | i can see the benefit of having the URL method … sorry I do not know the answer to your question … | 16:08 | |
16:13
Pe_Elle left
|
|||
i have taken the approach to specify a :base<base-url> on Todo.new … and that is then prefixed onto URL by Air::Component and is intended to match the HTML <base></base> tag operation the idea being that i can have a group of components used in a subsite with base xxx and then copy and deploy as a group to base yyy or a different site with different base location … since the route include has to have this info | 16:13 | ||
it seems like a logical place to set both params in top down fashion | |||
16:16
Pe_Elle joined
|
|||
SmokeMachine | librasteve: I’ve done something similar here (github.com/FCO/Cromponent/blob/952...rotmp#L4). Maybe I’ll need to do something like that… but I would prefer to have a way to do that… | 16:33 | |
17:31
Pe_Elle left
17:45
Pe_Elle joined
18:17
Pe_Elle left
18:43
Pe_Elle joined
19:17
Pe_Elle left
19:32
Pe_Elle joined
20:34
Pe_Elle left
20:48
Pe_Elle joined
21:50
Pe_Elle left
22:01
Pe_Elle joined
23:04
Pe_Elle left
23:09
japhb left
23:16
Pe_Elle joined
23:32
japhb joined
|