Skip to content

Instantly share code, notes, and snippets.

@Crenshinibon
Created March 3, 2016 18:40
Show Gist options
  • Save Crenshinibon/2b81e39a5913bd844b36 to your computer and use it in GitHub Desktop.
Save Crenshinibon/2b81e39a5913bd844b36 to your computer and use it in GitHub Desktop.
PerfStats = new Mongo.Collection 'perfStats'
Template.plaperf.onCreated () ->
@subscribe 'perfStats'
Template.plaperf.helpers
perfMeasures: () ->
if Template.instance().subscriptionsReady()
PerfStats.find()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment