Skip to content

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

Closed
wants to merge 6 commits into from
Closed

Push State #115

wants to merge 6 commits into from

Conversation

zamith
Copy link

@zamith zamith commented May 4, 2012

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.

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")
Copy link

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)

@zamith
Copy link
Author

zamith commented Jun 13, 2012

Any other problem?

@westonplatter
Copy link
Contributor

@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.

@zamith
Copy link
Author

zamith commented Sep 20, 2013

@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.

@westonplatter
Copy link
Contributor

@zamith cool. found better solutions?

@zamith
Copy link
Author

zamith commented Sep 20, 2013

Not really. Mostly just rails.

@westonplatter
Copy link
Contributor

@zamith zamith closed this May 24, 2018
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

Successfully merging this pull request may close these issues.

3 participants