Giter VIP home page Giter VIP logo

Comments (6)

indirect avatar indirect commented on July 18, 2024

Sounds like a useful command. Want to implement it? You might need to use html2haml to generate the layout from the erb file.

On Sep 4, 2013, at 4:11 PM, Jason Kim [email protected] wrote:

I think it would be pretty awesome if haml-rails had a command that looks like

$ rails g haml-rails:application-layout

And as a result, it removes the old application.html.erb with application.html.haml.

I think this is something almost every haml-rails users do with their Rails app manually already. It would be a frequently used command.


Reply to this email directly or view it on GitHub.

from haml-rails.

serv avatar serv commented on July 18, 2024

I'll have a jab at it.

from haml-rails.

serv avatar serv commented on July 18, 2024

@indirect ,

I'm having trouble making haml-rails to appear when I do rails generate --help.
https://github.com/serv/haml-rails/tree/working/lib/generators/haml-rails

I copied the file structure of rspec gem because I know it does rails g rspec:install which is what I want to do.
Can you spot where I went wrong?

from haml-rails.

indirect avatar indirect commented on July 18, 2024

haml-rails.rb doesn't require generators/haml-rails/install/install_generator. that might be it?

On Sep 11, 2013, at 1:02 PM, Jason Kim [email protected] wrote:

@indirect ,

I'm having trouble making haml-rails to appear when I do rails generate --help.
https://github.com/serv/haml-rails/tree/working/lib/generators/haml-rails

I copied the file structure of rspec gem because I know it does rails g rspec:install which is what I want to do.
Can you spot where I went wrong?


Reply to this email directly or view it on GitHub.

from haml-rails.

serv avatar serv commented on July 18, 2024

My apologies for not going through with this fix. I got stuck long time ago and forgot about it. If someone else with a better understanding of the gem would take over, that would great.

from haml-rails.

serv avatar serv commented on July 18, 2024

Thanks @indirect for merging my PRs.
I think we should release the gem with a new version number.
Closing this issue now.

from haml-rails.

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.