Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation should explain where to put the routes file #68

Open
pjakobsen opened this issue Apr 28, 2016 · 0 comments
Open

Documentation should explain where to put the routes file #68

pjakobsen opened this issue Apr 28, 2016 · 0 comments

Comments

@pjakobsen
Copy link

pjakobsen commented Apr 28, 2016

Hi, as a newbie, I banged my head against a brick wall for hours trying to use this library, until I realized that the routes must be in /client

I tried put my routes in both the /lib and /server, and got

TypeError: Cannot call method 'render' of undefined

To add further confusion, when I first started, I had the following coffee script in my /lib directory, which failed silently without any error:

FlowRouter.route "/test", name:"layout1" action: -> BlazeLayout.render "layout1", content: "postList"

An explanation of how all this works may be worth a quick mention in the docs. I'm sure there are many like myself who are freshly arriving from server centric frameworks where the idea of routing on the client is completely foreign. (In my case, Python Flask)

I wish I could contribute by writing it, but I still don't get how it all works ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant