title: Meteor-aldded:tabular collection undefined error
body: <p>I have the following table which works ok. Beeing an admin account I published the whole Meteor.users collection. I also have two databases in a file in the root /lib</p>
  <pre><code>Clients = new Meteor.Collection(&quot;client&quot;);
  Brands = new Meteor.Collection(&quot;brand&quot;);
  </code></pre>
  <p>They are published for now like this in the /server/lib folder</p>
  <pre><code>Meteor.publish(&quot;pubClients&quot;, function(){
    return Clients.find();
  });
  Meteor.publish(&quot;pubBrands&quot;, function(){
    return Brands.find();
  });
  Meteor.publish(&quot;pubUsers&quot;, function(){
    return Meteor.users.find();
  });
  </code></pre>
  <p>And subscribed like this in the client/lib folder</p>
  <pre><code>Meteor.subscribe('pubClients');
  Meteor.subscribe('pubBrands');
  Meteor.subscribe('pubUsers');
  </code></pre>
  <p>I am using the following template to inject the html:
  {{&gt; tabular table=TabularTables.Users selector=selector class=&quot;table table-striped table-bordered table-condensed&quot;}}</p>
  <p>Now if I try to change the Meteor.user to any of the Clients or Brands collection or even inserting above this code a console.log(Clients) I get a: &quot;Clients is not defined&quot; error.
  If I type in the console &gt; Clients before running rerunning the app it works fine with Mongo.Collection etc.
  If I run it I get the undefined message in the console too.
  This is my code ( in fact aldeed's code :) ):</p>
  <pre><code>TabularTables = {};
  
  Meteor.isClient &amp;&amp; Template.registerHelper('TabularTables', TabularTables);
  
  TabularTables.Users = new Tabular.Table({
  name: &quot;UserList&quot;,
  collection: Meteor.users,
  pub:&quot;pubUsers&quot;
  columns: [
  {data: &quot;username&quot;, title: &quot;User name&quot;},
  {
    data: &quot;emails&quot;,
    title: &quot;Email&quot;,
    render: function (val, type, doc) {
      return val[0].main
    }
  },
  {
    data: &quot;emails&quot;,
    title: &quot;verified&quot;,
    render: function (val, type, doc) {
      return val[0].verified?&quot;☑&quot;:&quot;☐&quot;;
    }
  },
  {
  data: &quot;profile&quot;,
  title: &quot;Account&quot;,
  render: function (val, type, doc) {
  return val.accType;
  }
  },
  {
    data: &quot;profile&quot;,
    title: &quot;Active&quot;,
    render: function (val, type, doc) {
      return val.active?&quot;active&quot;:&quot;pending&quot;;
    }
  },
  {
    data: &quot;createdAt&quot;,
    title: &quot;Singned up&quot;,
    render: function (val, type, doc) {
      return moment(val).calendar();
    }
  },
    {
      tmpl: Meteor.isClient &amp;&amp; Template.bookCheckOutCell
    }
  ]
  });
  </code></pre>
  <p>Any ideas?</p>
  <p>Thanks a lot.This is my package list:</p>
  <blockquote>
  <pre><code>accounts-base      1.1.3  A user account system
  
  accounts-password  1.0.5  Password support for accounts
  
  aldeed:tabular     0.2.3  Datatables for large or small datasets in Meteor
  
  insecure           1.0.2  Allow all database writes by default
  
  iron:router        1.0.6  Routing specifically designed for Meteor
  
  meteor-platform    1.2.1  Include a standard set of Meteor packages in your app
  
  momentjs:moment    2.9.0  Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging
  
  sergeyt:typeahead  0.10.5_7  Autocomplete package for meteor powered by twitter typeahead.js
  
  twbs:bootstrap     3.3.1_2  Bootstrap (official): the most popular HTML/CSS/JS framework for responsive, mobile first projects
  </code></pre>
  </blockquote>
  <p>I am using this collection in other points of the app and it works fine. Since I installed the tabular package
  things got out of hand somehow. I don't have the slights idea were to start from.
  I am struggling now for two days to get it working, but there's so few information on the web about this package (and most Meteor related subjects) that I decided to post this issue.</p>