Hi Guys! Today I published my first meteor package. Awesome
For me there are 2 questions left:
1.) The readme file is a bit strange. Is there a way to update this?
2.) I had to include a small JS code inside Template.mytemplate.rendered() function, because there was no other way to have the js loaded, so I can use it in my package. I checked the load order inside package.js. But nothing helped, excpet to put the JS code directly inside my rendered() function. Any Ideas what may have caused this?
Example:
Package.onUse(function(api) {
api.versionsFrom('1.2.1');
api.use(['templating','underscore','jquery','ui'],'client');
api.addFiles([
'xvendo_barcoder.html',
'src/ean13.min.js',
'xvendo_barcoder.js'
],'client'
);
});
Template.xvendo_barcoder.onRendered(function() {
new EAN13(element,dataEan)
});