A namespace helper for meteor. It allows you to define namespaces in meteor using the well-known dot notation.
$ meteor add txgruppi:namespace
namespace('MyBlog.Models', function() {
var Posts = new Mongo.Collection('posts');
return {
Posts: Posts
};
});
namespace('MyBlog.Models', () => {
let Posts = new Mongo.Collection('posts');
return {
Posts
};
});
namespace 'MyBlog.Models', ->
Posts = new Mongo.Collection 'posts'
return { Posts }
GPLv3