Giter Site home page Giter Site logo

Comments (3)

AlbinoGeek avatar AlbinoGeek commented on June 30, 2024

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.

AlbinoGeek avatar AlbinoGeek commented on June 30, 2024

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.

AlbinoGeek avatar AlbinoGeek commented on June 30, 2024

# 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.