Git Product home page Git Product logo

Comments (8)

sds avatar sds commented on July 21, 2024

It would not make sense for haml-lint to support linting Slim templates, as much of the plumbing is built specifically to deal with nuances of HAML.

I've wanted to build slim-lint for a while, but as we are still using HAML templates at Brigade I haven't been able to justify the venture just yet.

from haml-lint.

justin808 avatar justin808 commented on July 21, 2024

@sds would you use slim on a new project? The only disadvantages I see of slim are

  1. no linter
  2. RubyMine support is a bit buggy compared to haml

Otherwise, it seems superior.

from haml-lint.

sds avatar sds commented on July 21, 2024

Yes, if given the option I would choose Slim for new projects. Its use of the Temple library was a solid design decision (given my experience diving into the HAML project's code). Granted, HAML works great as well, I just see Slim as more extensible given the framework it was built on top of.

Maybe I'll find some time to spike on a quick proof of concept to get the ball rolling. Given Temple simply returns Sexps, it should be easy to get started with.

from haml-lint.

justin808 avatar justin808 commented on July 21, 2024

@sds Sweet. You'll be popular!

from haml-lint.

deivid-rodriguez avatar deivid-rodriguez commented on July 21, 2024

👍

slim is my personal preference too, but in the last project I started I chose haml just because there's haml-lint.

slim-lint has been on my "personal project candidate list" for a while, so I'll be willing to help if this is actually started and I get some spare time.

from haml-lint.

sds avatar sds commented on July 21, 2024

Circling back on this: I've thrown together a working Slim linter (creatively named slim-lint), which functions similarly to haml-lint, and is heavily based off its codebase. RuboCop integration seems to be working, but I don't have any large projects using Slim so it's hard to know if I've missed some cases and the linter is noisy. If you do have some large Slim projects, take it for a spin and let me know what you think!

from haml-lint.

justin808 avatar justin808 commented on July 21, 2024

Will do! 👍

from haml-lint.

Vorob-Astronaut avatar Vorob-Astronaut commented on July 21, 2024

@sds 👍

from haml-lint.

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.