@yogthos so component vs mount is kind of 'dependency inversion' vs 'no dependencies'? This makes a lot of sense, but it's hard! Not being able to pass impure functions into your business logic (e.g. find and save) makes finding abstractions that don't significantly reduce the ratio of business logic/IO trickier, at least for me. Would you recommend any patterns/thought processes/examples that help with this?
thanks, will give that a try
one thing that might help is to start with the business logic and to mock out the data you're expecting from external sources
so you'd create a mock API that you get data from, and then work against that, and then you couple it to the actual IO afterwards
ah ok, yeah selmer doesn't really provide support for that, I find it's usually better to massage data before you pass it to selmer
so for example you could do group-by and then do an if for each category in selmer
Great, thanks for the response. I wasn't really sure what's possible and what not.