This project is archived and is in readonly mode.
Print partial name in HTML, in development mode
-
Craig Buchek
- Tag changed from html comment partials, rails to html comment partials, feature_request, partials, rails
- Assigned user set to DHH
This sounds like a good idea, but should only be enabled in non-production environments. (And easily turned off or on.)
That said, this is a feature request, and would need to have a patch against Rails master to get integrated into Rails.
I'd also suggest that you get your users to +1 it here.
Assigning to DHH due to his "Rave Review" at the bottom of http://github.com/anildigital/partioprint ;)
-
Brian Rose
I definitely understand the usefulness, but I don't understand why it should be part of Rails. Keeping it in a plugin seems like the right way to go, imo.
-
Amos King
I think it should stay as a patch. A framework should optimize because you don't know the end user's use case all the time, and if they have a lot of partals that is a lot of extra info down the wire, and exposes part of your implementation that many companies may not want to happen. I think keep it as a plugin. If you want it make it only work if you turn it on.