Project

debug_html

0.0
No commit activity in last 3 years
No release in over 3 years
Drop-in HTML page save and open like capybara's save_and_open_page.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.5

Runtime

>= 2.4.3, ~> 2.4
 Project Readme

debug_html

Build Status Gem Version

debug_html can be used to save HTML to a temporary file and open it in a web browser for inspection. It's like save_and_open_page in capybara.

example GIF

Usage

Put this somewhere in your code to open the default web browser to render the HTML code.

require 'debug_html'
DebugHTML.save_and_open(html)

You could also do something else instead of opening a web browser.

require 'debug_html'
path = DebugHTML.save(html)