-
Notifications
You must be signed in to change notification settings - Fork 732
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
Support Slim like Haml #214
Comments
That's two votes for slim |
It's come up before. Unfortunately, it's similarity to Haml is not any kind of advantage, because Brakeman works on the generated code, not the template code. My concern previously was that it seems too configurable. However, it may be the case that when used with Rails everyone uses the same options? If so, I can see about supporting it.
Very frightened. There are lots of little fickle details. |
Yeah, from my experience using it usually it's just drop in the slim-rails gem and go, so hopefully the configs are all the same. That reminds me -- A few times I've seen some Haml internals seeming to creep into the code snippets. Is that expected or bug? If bug, I'll try to catch it sometime and report. |
Probably bug, please report. |
I'd also like to see this supported and would be willing to lend a hand in the effort, it's my biggest hole as far as my security confidence goes on each of my newer apps using slim. |
Ooops, NEXT wednesday. |
Slim support is definitely doable (again, assuming people almost always use the defaults - Slim is very flexible) - but it would really help to have a real application to use for testing. |
I can test against the Code Climate app and report feedback, though it's On Tue, Jan 15, 2013 at 7:45 PM, Justin notifications@github.com wrote:
|
Naturally we would add slim to the Brakeman test apps, but a real application is way better for understanding how Slim works and getting good coverage. |
Okay, found one. Will work on later this week. |
Cool, now everyone please test #271 :) |
Merged in #271 |
Slim (http://slim-lang.com/) is an increasingly popular template language that is similar to Haml. I use it for Code Climate, and I know a number of my customers do as well.
Currently Brakeman skips all Slim templates. I think this would be pretty easy to fix, since it already supports Haml.
This would probably be a good time to refactor the template processing code a bit as well. @presidentbeef -- How do you feel about the test coverage of that area?
The text was updated successfully, but these errors were encountered: