Sorry to resurrect this very old topic, hope it is OK.
Can we override (in a plugin)?
app/views/layouts/application.html.erb
Like this:
register_asset '../views/layouts/application.html.erb'
I suspect the answer is “NO!”… if “no” (because ‘assets’ are not ‘views’ in Rails, so can we have a future plugin method:
register_view
So we can simply do this in the future (for example):
register_asset 'layouts/application.html.erb'
and override 'layouts/application.html.erb
This seems like a good idea to me, not being a Discourse plugin expert by any stretch of the imagination.
Thanks for your consideration.