Comments (3)
https://github.com/arillo/meteor-flow-router-helpers
arillo:flow-router-helpers
does not install (says it would downgrade templating
and coffeescript
)
Is there a flow-router way to get a path for a route?
=> Errors while adding packages:
While selecting package versions:
error: Potentially incompatible change required to top-level dependency: coffeescript 1.12.7_3, was 2.0.2_1.
Constraints on package "coffeescript":
* [email protected] <- arillo:flow-router-helpers 0.5.2
* [email protected] <- zimme:active-route 2.3.2 <- arillo:flow-router-helpers 0.5.2
To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.
from flow-router.
Might be a problem with the other package instead:
arillo/meteor-flow-router-helpers#41
Although this means flow-router
provides no way to "link to" a route natively?
from flow-router.
# return path
pathFor = (path, view = {hash:{}}) ->
throw new Error('no path defined') unless path
# set if run on server
view = hash: view unless view.hash
if path.hash?.route?
view = path
path = view.hash.route
delete view.hash.route
query = if view.hash.query then FlowRouter._qs.parse(view.hash.query) else {}
hashBang = if view.hash.hash then view.hash.hash else ''
FlowRouter.path(path, view.hash, query) + (if hashBang then "##{hashBang}" else '')
Template.registerHelper 'pathFor', pathFor
Closing this issue, since the problem was with flow-router-helpers
from flow-router.
Related Issues (20)
- Meteor Routing Guide missing now that Kadira is out of business HOT 2
- Is there a way to internationalize URLs? HOT 2
- Subscription using es6 syntax HOT 1
- A way to list all routes from the server side HOT 1
- Public files donβt get served until dev server restarts for the first time HOT 2
- Render route without changing url or making a route "alias" or set "hidden" param ? HOT 1
- [Meteor 1.6] Cannot navigate back to app homepage using browser back button HOT 1
- route not found HOT 1
- Timing or sync question
- Router tries to run before route is even defined
- window.onbeforeunload
- Can triggers run asynchronously?
- Getting Started guide in README.md does not mention importing router.js
- query params not parsed in not found
- trigger on route change ? HOT 2
- query params lost after redirect
- FlowRouter.path() :_id+_:action not work
- how can change url params without changing route HOT 3
- "Path" not change in loop of FlowRouter.go() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow-router.