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

Converting specific file/folder #104

Open
rusikf opened this issue Aug 20, 2015 · 3 comments
Open

Converting specific file/folder #104

rusikf opened this issue Aug 20, 2015 · 3 comments

Comments

@rusikf
Copy link

rusikf commented Aug 20, 2015

@indirect, What you think about ability for converting specific file or folder like this :

  haml2rails app/views/cats/_form.html.erb app/views/cats/_form.html.haml
  haml2rails --replace app/views/cats/_form.html.erb # do the same, but replace erb with haml
  haml2rails app/views/cats # convert the whole cats view folder
@indirect
Copy link
Member

uhh... haml2rails isn't in this repo, is it?

@rusikf
Copy link
Author

rusikf commented Aug 21, 2015

Ou , ssory I thinked about this rake haml:erb2haml in this context, haml2rails - only as a example

@indirect
Copy link
Member

Oh, I see! Yeah, that seems useful. But rake tasks can't take arguments like that, so it would have to be more like this, I think? rake haml:erb2haml["app/views/cats"].

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

2 participants