Calling View file functions from main app

jmurphyweb
Tue, 03 Mar 2020 11:14:06 +0000
Chat / Discussions

Given that View modules contain formatting logic, what do you do if you want to format some data in your main application (ie in lib/myapp/ as opposed to in the lib/myapp_web/) ?

We are doing a load of CSV exports, and I keep finding myself aliasing View modules in my library modules which feels dirty.

How do you handle this? Do you have any self-enforced rules about which modules can call others? I’d love to hear about them!

15 posts - 4 participants