Phrogz / NeatJSON

Pretty-print your JSON in Ruby, JS, or Lua with more power than JSON.stringify or JSON.pretty_generate
http://phrogz.net/JS/NeatJSON
MIT License
108 stars 19 forks source link

Add to asset pipeline. #23

Closed synthead closed 1 year ago

synthead commented 7 years ago

This PR makes the NeatJSON JS available in the Rails asset pipeline.

With these changes, including the NeatJSON JS in a Rails app is as easy as adding this to app/assets/javascripts/application.js:

//= require neatjson
Phrogz commented 7 years ago

Thanks for the idea, work, and pull request. As it stands, the javascript folder has an HTML file that relies on the js library to be relatively present. Renaming the file as you have will break this.