<NME> categories_menu.js
<BEF> ADDFILE
<MSG> modularizing nav

<DFF> @@ -0,0 +1,11 @@
+Template.categoriesMenu.helpers({
+  hasCategories: function(){
+    return typeof Categories !== 'undefined' && Categories.find().count();
+  },
+  categories: function(){
+    return Categories.find({}, {sort: {order: 1, name: 1}});
+  },
+  categoryLink: function () {
+    return getCategoryUrl(this.slug);
+  }
+});

{'addition_count': 11, 'commit_subject': 'modularizing nav', 'deletion_count': 0, 'file_extension': '.js', 'lang': 'js', 'license': 'mit', 'repo_name': 'VulcanJS/Vulcan'}