Where do I put iron-router code?

Where am I supposed to put

    this.route(name:String, options:Object);

and all other iron-router code with meteor? In the main.html file?


You can have a look at the unofficial-meteor-faq for some file organization ideas. It should be under the client directory - e.g. client/lib/routes.js, but there isn't a strict rule about where it should go.

Need Your Help

SVN Feature Branch Method

svn tortoisesvn repository

I am getting a SVN server setup and will be using the feature branch method. I plan on having 1+ branches making up a release tag. How do I merge (?) multiple branches into the release tag, while s...

CGPath and Quartz 2D

iphone sdk quartz-graphics quartz-2d

I want to create a triangle using Quartz 2D functions. The 3 edges of the triangle should be in different colors. I am able to create the triangle but not able to set the color of each edge or subp...