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

Support Slim like Haml #214

Closed
brynary opened this issue Dec 18, 2012 · 13 comments
Closed

Support Slim like Haml #214

brynary opened this issue Dec 18, 2012 · 13 comments
Milestone

Comments

@brynary
Copy link
Contributor

brynary commented Dec 18, 2012

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?

@oreoshake
Copy link
Contributor

That's two votes for slim

@presidentbeef
Copy link
Owner

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.

How do you feel about the test coverage of that area?

Very frightened. There are lots of little fickle details.

@brynary
Copy link
Contributor Author

brynary commented Dec 18, 2012

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.

@presidentbeef
Copy link
Owner

Probably bug, please report.

@goodwink
Copy link

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.

@oreoshake
Copy link
Contributor

@brynary @goodwink we have a conf call tomorrow at 11am PST where we could discuss things like this. Interested? We're trying to make it a regular thing too fwiw ☎️

@oreoshake
Copy link
Contributor

Ooops, NEXT wednesday.

@presidentbeef
Copy link
Owner

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.

@brynary
Copy link
Contributor Author

brynary commented Jan 22, 2013

I can test against the Code Climate app and report feedback, though it's
closed source. For something OSS, maybe we could expand a test app in the
Brakeman repo?

On Tue, Jan 15, 2013 at 7:45 PM, Justin notifications@github.com wrote:

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.


Reply to this email directly or view it on GitHubhttps://github.com//issues/214#issuecomment-12298294.

@presidentbeef
Copy link
Owner

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.

@presidentbeef
Copy link
Owner

Okay, found one. Will work on later this week.

@presidentbeef
Copy link
Owner

Cool, now everyone please test #271 :)

@presidentbeef
Copy link
Owner

Merged in #271

Repository owner locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants