These are chat archives for dry-rb/chat

6th
Jun 2017
Chris Richards
@cmrichards
Jun 06 2017 22:17
Hey. How does the latest dry-view and it' new Parts functionality compare to Cells?
Tim Riley
@timriley
Jun 06 2017 22:24
They're somewhat different. I tried to explain in the release blog post. Best way to get a feel for them would be to have a play with each and compare?
Chris Richards
@cmrichards
Jun 06 2017 22:46
Oh cool I'll look for the blog post
Chris Richards
@cmrichards
Jun 06 2017 22:52
I've just tried using dry-web-roda cli to create a new flat app and it's pretty neat. All the magic I'd normally expect from a framework setup is replaced with explicit setup code. The only bit that seemed a bit magicy/meta was how the "r.view 'thingy'" routing code linked to the view controllers
It looks like it's looking for classes in the "views" folder in default namespace of the container. Although this is never made explicit. Is this correct?
Tim Riley
@timriley
Jun 06 2017 22:58
Chris Richards
@cmrichards
Jun 06 2017 23:01
Ah yes, somehow missed that. Will "views.#{name}" look only in the default namespace or could it be in any of the auto loaded paths setup in the container
?
Tim Riley
@timriley
Jun 06 2017 23:04
It’ll find whatever is first registered as that