Reputation: 3360
I'm adding three files for the client in my Meteor package like so:
api.add_files([
'lib/client/newsletter_banner.html',
'lib/client/newsletter_banner.css',
'lib/client/templates.js'
], ['client']);
newsletter_banner.html
defines a template which is not available when I load the site. If I look through the sources in Devtools, I can see that the CSS and JS files are available, but the HTML file is not. Why is this? I've confirmed that the filename is correct and even changed it thinking that name might be unavailable to me for whatever reason, but the file is still not included.
Upvotes: 0
Views: 75
Reputation: 19544
Html files are loaded by the templating
package, so you need to add it to your package as well:
api.use(['templating', 'spacebars', 'ui'], 'client');
Upvotes: 1