All Projects → r7kamura → View_source_map

r7kamura / View_source_map

Licence: mit
Rails plugin to view source map

Programming Languages

ruby
36898 projects - #4 most used programming language

ViewSourceMap

Gem Build Status

This is a Rails plugin to insert the path name of a rendered partial view as HTML comment in development environment.

Usage

In your Gemfile

group :development do
  gem "view_source_map"
end

and launch your rails server in development environment:

$ rails s

Tips

Sometimes this adds too much noise to the html when you're developing. There is a simple way to turn it off.

$ DISABLE_VIEW_SOURCE_MAP=1 rails s

or

<%= render "example_disabled", view_source_map: false %>
<%= render partial: "example_disabled_partial", view_source_map: false %>
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].