How to add a template to body in Meteor inside a package

↘锁芯ラ 提交于 2019-12-01 03:07:37

Solved! Add this line:

api.use(['templating'], 'client');

it is also important to include the html file before the js

api.add_files("client/sampleTemplate.html", "client");
api.add_files("client/sampleTemplate.js", "client");
Ramon Henrique

Include in file packages.js of package

before

api.use('meteor-platform');
api.use('ui');`

after first ".html" files, after ".js" files

api.addFiles('filename.html','client');
api.addFiles('filename.js','client');`
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!