Any ideas how to get content representations (CRs) to work when using a custom registered template component?
In my case, I’m using Blade for all templates, and I don’t even have a site/templates
directory.
CRs don’t work unless a site/templates/[template].json.php
file is registered.
It would be great if core would use site/controllers/[template].json.php
for CRs even if site/templates/[template].json.php
doesn’t exist.
Maybe we could customize the default behavior of the CR functionality, or give it a callback or closure to run for custom behavior when it looks up the template file. Something along these lines.
(I haven’t dug into core to see how it works yet.)
Thoughts?