Helpers for FlowRouter
Template helpers for kadira:flow-router
- subsReady
- isSubReady (deprecated)
- pathFor
- urlFor
- param
- queryParam
- currentRouteName
See zimme:active-route for using the following helpers
- isActiveRoute
- isActivePath
- isNotActiveRoute
- isNotActivePath
meteor add arillo:flow-router-helpers
Checks whether your subscriptions are ready. You can pass multiple subscription names. If you don't pass a subscription name it will check for all subscriptions to be ready.
Checks whether your subscription is ready. If you don't pass a subscription name it will check for all subscriptions.
Used to build a path to your route. First parameter can be either the path definition or, since version 1.2.0 of flow-router, the name you assigned the route. After that you can pass the params needed to construct the path. Query parameters can be passed with the query parameter.
Notice: To deparameterize the query string we are currently using the not yet official accessor for the query lib in page.js via FlowRouter._qs
Same as pathFor, returns absolute URL.
Returns the value for a url parameter
Returns the value for a query parameter
Returns the name of the current route
0.4.4 - added currentRouteName helper
0.4.3 - added param helper
0.4.0 - updated to use kadira:flow-router
0.3.0 - changed isSubReady in favor of subsReady