All Projects → phoet → Partially_useful

phoet / Partially_useful

Licence: other
📑 👀 Helps identifying partials in verbose HTML source code.

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Partially useful

Bh
Bootstrap Helpers for Ruby
Stars: ✭ 834 (+3526.09%)
Mutual labels:  rails
Rails5 application template
Rails Application Template
Stars: ✭ 17 (-26.09%)
Mutual labels:  rails
Croppy
Image Cropping Library for Android
Stars: ✭ 906 (+3839.13%)
Mutual labels:  view
Capybara error intel
🐛 Ruby gem for heuristic error messages in Capybara based Page Objects
Stars: ✭ 16 (-30.43%)
Mutual labels:  rails
Leaky Gems
A list of Ruby gems that have known memory leaks (and issues)
Stars: ✭ 895 (+3791.3%)
Mutual labels:  rails
Api schema
DSL for describing APIs and generate swagger json
Stars: ✭ 18 (-21.74%)
Mutual labels:  rails
Ordinalize full
Turns a number into an ordinal string such as first, second, third or 1st, 2nd, 3rd.
Stars: ✭ 6 (-73.91%)
Mutual labels:  rails
Foundation Datetimepicker Rails
foundation-datetimepicker-rails
Stars: ✭ 22 (-4.35%)
Mutual labels:  rails
Administrate Field Ckeditor
A plugin for adding CKEditor support to Administrate
Stars: ✭ 17 (-26.09%)
Mutual labels:  rails
Redis Rails
Redis stores for Ruby on Rails
Stars: ✭ 904 (+3830.43%)
Mutual labels:  rails
Vagrant Rails Dev
my vagrant rails development box
Stars: ✭ 16 (-30.43%)
Mutual labels:  rails
Decidim
The participatory democracy framework. A generator and multiple gems made with Ruby on Rails
Stars: ✭ 894 (+3786.96%)
Mutual labels:  rails
Lvartisan
Laravel artisan command for creating view.
Stars: ✭ 18 (-21.74%)
Mutual labels:  view
Procourse Memberships
Allow users to purchase access to a user group on Discourse.
Stars: ✭ 16 (-30.43%)
Mutual labels:  rails
Crab
JavaScript library for building user interfaces with Custom Elements, Shadow DOM and React like API
Stars: ✭ 22 (-4.35%)
Mutual labels:  view
Drab
Remote controlled frontend framework for Phoenix.
Stars: ✭ 833 (+3521.74%)
Mutual labels:  view
Uuwaveview
[iOS]带有波形效果的UI控件,可自定义波形线条的数量、颜色、振幅、传播速度等各种参数。
Stars: ✭ 18 (-21.74%)
Mutual labels:  view
Graphview
Android GraphView is used to display data in graph structures.
Stars: ✭ 918 (+3891.3%)
Mutual labels:  view
Rails Api And Angularjs
Integration between rails and angularjs which includes rspec tests.
Stars: ✭ 22 (-4.35%)
Mutual labels:  rails
Libraries.io
📚 The Open Source Discovery Service
Stars: ✭ 903 (+3826.09%)
Mutual labels:  rails

PartiallyUseful

Build Status

HTML source code is very verbose and can be a pain in the ass to find a specific part on big pages.

Finding the origin of a piece of HTML in the Rails app/views directory can be tedious and error prone.

Adding this gem to your Rails application adds HTML comments at development time, so it's easy to find the right partials.

<!-- 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:

gem 'partially_useful', group: 'development'

Usage

The plugin is enabled by default, but you can disable it in your Rails configuration:

# config/environments/development.rb
config.partially_useful = false

Caveats

HTML comments might subtly break your application when partials are used out of the usual HTML rendering context (JS, CSS etc).

If you run into any problems, make sure to disable the gem and restart your Rails server.

Supported Ruby and Rails versions

Version 6.0.x has support for Rails 6.0.x. Version 5.1.0 has support for Rails 5.x and Ruby 2.x. Older Rails and Ruby versions are supported by the 0.x releases.

Contributing

  1. Fork it ( https://github.com/phoet/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

See LICENSE.md.

Changelog

See CHANGELOG.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].