Hi guys, how are you doing?
I’m looking foward to build a huge application using adonis, and one of many questions i have, is how can i set a theming strucure using adonis. Eg. I have a theme struture similar to wordpress and i want to set it dynamically which theme would be used by adonis when the app is loaded. however, without setting that hardcoded in my project controllers.
My theme structure is as following:
|- resources |- views |- default (theme) | | - posts | |- index.edge |- vaporwave (theme) | | - posts | |- index.edge |- future (theme) | | - posts | |- index.edge
... const posts = await Post.query().paginate(20) return view.render('posts.index', posts) ...
So i want adonis render the correct
posts.index.edge view, According with a setting defined on my database or
Anyone realizes how can i do this?