Can Meteor live changes have animations?

Here is a working example of a simple animation with meteor. The situation here is that we have a list of items. If the user clicks on any of those items the item will animate 20px to the left. JS //myItem Template.myItem.rendered = function(){ var instance = this; if(Session.get(“selected_item”) === this.data._id){ Meteor.defer(function() { $(instance.firstNode).addClass(“selected”); //use … Read more

Jade templating in Meteor

We would love to see Jade integration. Use packages/handlebars as a template. The basic strategy is to wire the output of the template engine into Meteor.ui.render which is how we implement live page updates. As long as your template returns HTML, that’ll work. Any time a Jade template references a Meteor.Collection document or Session variable, … Read more

Ordering of the css and js files loaded by Meteor

This question has since been answered in http://docs.meteor.com/ The JavaScript and CSS files in an application are loaded according to these rules: Files in the lib directory at the root of your application are loaded first. Files that match main.* are loaded after everything else. Files in subdirectories are loaded before files in parent directories, … Read more

How to build a Meteor smart package

Meteor now supports a create –package command. See the meteor docs. Example (substitute your own meteor developer account for “cunneen”): meteor create –package cunneen:foo Output: cunneen:foo: created in your app Results: packages/cunneen:foo/package.js Package.describe({ name: ‘cunneen:foo’, version: ‘0.0.1’, // Brief, one-line summary of the package. summary: ”, // URL to the Git repository containing the source … Read more

BABEL Note: The code generator has deoptimised the styling of “app.js” as it exceeds the max of “100KB in Meteor

This is not a real issue. Just a warning. When babel compiles some code, it try to offer a readable output, but when files become big (>100KB), babel considers (by default) that it’s not useful to keep this option enabled (because yes it’s an option, see https://stackoverflow.com/a/30879872/988941 for more information). It’s not a problem to … Read more

How do I delete or remove Session variables?

[note: this answer is for Meteor 0.6.6.2 through at least 1.1.0.2] [edit: updated to also explain how to do this while not breaking reactivity. Thanks to @DeanRadcliffe, @AdnanY, @TomWijsman, and @MikeGraf !] The data is stored inside Session.keys, which is simply an object, so you can manually delete keys: Session.set(‘foo’, ‘bar’) delete Session.keys[‘foo’] console.log(Session.get(‘foo’)) // … Read more