My question is very simple but I didn't find the exact answer.
<template name="loading">
//loading spineer
</template>
Now I need to hide and show this template with subscription ready. How do I render loading template from javascript. I have tried
{{#unless Template.subscriptionsReady}}
{{> loading}}
{{/unless}}
and
{{#If Template.subscriptionsReady}}
{{> loading}}
{{else}}
content
{{/if}}
But in my case #unless and #if is not required. Have to load it from script.
#unlessand#ifis not my requirement. have to show/hide loading template from script.