-
Notifications
You must be signed in to change notification settings - Fork 254
Push State #115
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
Push State #115
Conversation
template 'router.coffee', File.join(backbone_path, "routers", class_path, "#{plural_name}_router.js.coffee") | ||
def create_router_files | ||
if options[:pushstate] | ||
template 'router_ps.coffee', File.join(backbone_path, "routers", class_path, "#{file_name}_router.js.coffee") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be written as "plural_name"? (but practically no problem)
Any other problem? |
@zamith nice addition! any chance you want to bring you'd want to bring the funcitonality into this - http://westonplatter.com/railsy_backbone? I'd love to work through the PR with whatever help you need, tests and such. |
@westonplatter Hey, thanks for the comment, but right now I don't have the time to work on this, since I've been parting ways with backbone. Hope the project goes well, though. |
@zamith cool. found better solutions? |
Not really. Mostly just rails. |
@zamith and, it looks like Rails Engines. 👍 https://leanpub.com/start-engines?utm_campaign=start-engines&utm_medium=embed&utm_source=zamith.pt. |
I've added push state compliant templates that can be used by passing a flag to your generators. I've also updated the README to take this into account.
I haven't written any tests yet, sorry for that. But if you really want them I can try too make some time to do them.