00:00 Pe_Elle left 00:24 Pe_Elle joined 00:49 Pe_Elle left, Pe_Elle joined 04:20 Pe_Elle left 04:36 Pe_Elle joined 04:37 Pe_Elle left, Pe_Elle joined 06:38 Pe_Elle left 06:39 Pe_Elle joined 06:44 Pe_Elle left 07:00 Pe_Elle joined 07:41 Pe_Elle left, Pe_Elle joined 09:19 japhb left 09:26 japhb joined 09:37 sena_kun joined 10:01 Pe_Elle left 10:02 Pe_Elle joined 10:07 sena_kun left, Pe_Elle left 10:22 Pe_Elle joined 11:01 Pe_Elle left 11:02 Pe_Elle joined 11:37 Pe_Elle left 11:38 Pe_Elle joined 11:43 Pe_Elle left 12:12 Pe_Elle joined 12:17 Pe_Elle left 12:31 Pe_Elle joined 14:24 Pe_Elle left 14:53 Pe_Elle joined 14:58 Pe_Elle left 15:14 Pe_Elle joined 16:47 Pe_Elle left 17:07 Pe_Elle joined
librasteve SmokeMachine: I have taken the liberty of writing a protoype HTML::Component::CroTmp prototype that use the current version of Cro WebApp - please do feel free to try it and get a feel for what can sit in a class and why the route block is used with an instance etc. gist.github.com/librasteve/3f435bc...1b72af8389 18:05
comments / feedback are very welcome here
there are quite a lot of constraints from the way that the repository gets precompiled so I have chosen to go the "write template to disk when the route is consumed" to maintain consistency. this proto only covers the scope of HTML (not CSS / JS) which I would like to also have in a component setting so. My original larger scheme hoped to marry HTML components ("islands") and to use crotmp ... but based on this 18:11
prototype, I am now feeling that crotmp is not really compatible with the idea of islands.
SmokeMachine I’ve been playing with an idea extremely similar but completely different. I’m far from my computer now, when I’m back home, I’ll commit it to let you see that… it’s using your template-inline… but it adds the components as sub on every template… I’m still trying to find a better way to integrate format and the data… I’ll let you know when o commit it…
18:12 Pe_Elle left
librasteve yeah - I think that template-inline could work ... this proto was assuming "I wanna do something dynamic with my component, so its base tamplate would have some subs and then there would be an action crotmp to cal the subs... which by then have to be in the repo. 18:13
anyway, please do share 18:14
18:30 Pe_Elle joined 18:34 Pe_Elle left 18:49 Pe_Elle joined 18:53 sena_kun joined 19:14 librasteve_ joined 19:51 Pe_Elle left 20:06 Pe_Elle joined 20:12 Pe_Elle left 20:42 Pe_Elle joined
SmokeMachine librasteve: here it is: github.com/FCO/Cromponent/blob/mai...onent.raku 20:45
librasteve tx 20:46
SmokeMachine if you clone that and use your fork from cro template it should work...
librasteve ok
will take a look thanks!!
20:46 Pe_Elle left
SmokeMachine here are the guts: github.com/FCO/Cromponent/blob/mai...nt.rakumod 20:46
it's not pretty... `template-with-components` adds the componets' subs every time... 20:47
and I gm still trying to find a way to not neet to call the sub AND pass the object (like on: `<&Todo($todo)>`) but I still have no idea... I'll maybe try to take a look how Form is implemented to see if that could help... 20:50
21:03 Pe_Elle joined 21:23 Pe_Elle left 22:06 Pe_Elle joined 22:10 Pe_Elle left 22:23 librasteve_ left 22:39 Pe_Elle joined 23:02 sena_kun left 23:44 Pe_Elle left