I’m working on an Ember app that is integrated in another bigger one. I’m developing it independently but to be truthful with the design I added the static template that will have when is fully integrated.
My first idea was to add it to the application template, but that is not so good because when the app is in production the external application provides the template, so I added it into the index.html (I don’t use the index.html in prod). So my index.html looks like:
....
<body>
<div....
<div....
{{content-for 'body'}}
</div>
</div>
...
This works well, but now was wondering if is possible to have this behaviour in a conditional way. I tried using handlebars to access the environment variable, but is not working. Has anybody an idea on how to approach this?