Skip to content

Instantly share code, notes, and snippets.

@drobbins
Last active August 29, 2015 14:00
Show Gist options
  • Save drobbins/b2940d6949d07045bf5c to your computer and use it in GitHub Desktop.
Save drobbins/b2940d6949d07045bf5c to your computer and use it in GitHub Desktop.
Simple Meteor/IPE Module
myPatients = Patients.find().fetch();
numPatients = myPatients.length;
console.log("Hello from a module in Este. There are", numPatients, "patients available.");
numModules = Modules.find().count();
console.log("Hello from a module! Including this one, there are", numModules, "modules loaded.");
@jonasalmeida
Copy link

David, I wrote this JSON Patients Gist to test it and it worked fine. Can you remind me how I should have written it to create a regular navigable entry?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment