How to import js/html files using a switch statement?
<p>I have a <code>themes.js</code> file whose helper is as follows:</p>

<pre><code>Template.themes.helpers({
        'allcompanyInformation' : function() {

            var configData = CompanySettings.findOne({"_id" : "dNtMroDWtaKQytD6W"});
            if(configData){
            console.log(configData);
            console.log(configData.generalSettings.storeType);

                 switch(configData.generalSettings.storeType){
                    case 'AutomobileSpares':
                        console.log("AutomobileSpares");
                        import './autospare-inhouse-theme/autospare-inhouse-theme.js';
                        break;

                    case 'FashionJwellery':
                        console.log("FashionJwellery");
                        import './classic-jwellery-themes/classic-jwellery-themes.js';
                        break;

                    case 'PreciousJwellery':
                            if(configData.generalSettings.processType =='Customize'){
                                if(configData.generalSettings.shopType =='inhouse'){
                                console.log(configData.generalSettings.shopType);   
                                console.log("***  In inhouse ***");
                                import '../modules/homepage/homepage.js';
                                import './elegant-jwellery-theme/elegant-jwellery-theme.js';


                            }
                            else{
                                console.log("if not inhouse");
                            }
                        }
                        else{
                            console.log("ProcessType else part");
                        }
                        break;  

                    case 'GroceryStore':
                        import './modern-grocery-theme/modern-grocery-theme.js';
                        break;
                 }
            }


        },
    });
</code></pre>

<p>I want to import <code>import '../modules/homepage/homepage.js';</code> if conditions of switch are satisfied. This must render <code>homepage.html</code>, which is imported by <code>homepage.js</code>.</p>