0.0
No commit activity in last 3 years
No release in over 3 years
An experimental gem to transform HTML to Sliml (a kind of Slim markdown)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.3.8, ~> 1.3
 Project Readme

Introducing the HTML_to_Sliml gem

require 'html_to_sliml'

html =<<EOF

<html>
  <head>
    <title color="green" size="3">testing this page</title>
  </head>
  <body>
    <p>Testing something</p>
  </body>
</html>
EOF
h2s = HtmlToSliml.new(html).to_s
puts h2s

Output:

html
  head
    title {color: "green", size: "3"} testing this page
  body
    p Testing something

Resources

htmltosliml gem html_to_sliml