Sha256: 04541fd4ae6a30378a2b25019e82e3d2647078ec529f36e47e7d20e698896f1d
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
# PartiallyUseful When looking at a rendered html page, it's often hard to tell where the code of a partial lives inside the views directory. Surrounds rendered partials with html-comments in order to simplify the process of finding the proper file. ```html <!-- start rendering 'some_partial' with locals '[:all, :assigned, :locals]'--> <div class="hello"> <div class="world"> [...] </div> </div> <!-- end rendering 'some_partial' with locals '[:all, :assigned, :locals]'--> ``` ## Installation Add this line to your application's Gemfile: ```ruby gem 'partially_useful', group: 'development' ``` ## Usage The plugin is enabled by default, buy you can disable it in your rails configuration: ```ruby # config/environments/development.rb config.partially_useful = false ``` ## Contributing 1. Fork it ( https://github.com/[my-github-username]/partially_useful/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request ## License "THE (extended) BEER-WARE LICENSE" (Revision 42.0815): [phoet](mailto:ps@nofail.de) contributed to this project. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me some beers in return.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
partially_useful-0.0.1 | README.md |