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
Annotating haml and slim file #3889
Conversation
Yes, that would be nice but we should instead provide a mechanism for extension of the code annotator instead of simply hardcoding the logic. :( |
There are not that many engines, and they don't change that often, and it's not like new engines are emerging every week. Making mechanism for extension would nice (and challenging) but sound like over shoot (taking under consideration point listed above). |
This argument is moot because it is like saying Rails can hardcode all the code to test-unit and rspec, without providing an API, because that's basically what people use it anyway. |
I see Your point, and You are probably right. Agree Rails should go in the direction of becoming more transparent and less hardcoded. These commit ought to reflect change in Rails ecosystem, not revolutionizing Rails annotating system, just keeping it up to date:) |
Ok. I will merge it but basically because I liked the test coverage. ;) Could you please also rename the test file to |
… railties/test/application/rake/migrations_test.rb
Done:) |
Annotating haml and slim file
@sobrinho, It's exactly what @josevalim (btw, thanks!) suggested, making some sort of mechanism for extensions, so it would be "easier" (in the meaning not hardcoded in Rails) for other template engines to implement their annotation style. |
Hi,
Not sure why there is no way to annotate haml and slim file?
These template engines getting more and more popular, so why not allow to annotate them (with TODO, etc)?
Here is my proposal (code and tests) allowing annotation of these files.
Thanks for Your time:)