Html2jade

screenshot of Html2jade

Converts HTML to Jade template. Not perfect but useful enough for non-daily conversions.

Overview

html2jade is a module that converts HTML into Jade format. It is compatible with Node.js 4.0+ and supports OS X, Windows, and Linux. While it is mostly usable, it may require some fixing up for conditionals and scripts indentation.

Features

  • Converts HTML into Jade format
  • Compatible with Node.js 4.0+
  • Supports OS X, Windows, and Linux
  • Outputs to stdout if input is URL
  • Outputs to file if input is file
  • Supports command-line usage with various options
  • Provides programmatic usage to convert raw HTML into Jade
  • Supports conversion of DOM document into Jade (client-side)
  • Can be used to convert Mustache/Handlebars Templates
  • Has a web version and a Linux tray app for convenience
  • Includes a simple unit test for conversion of HTML files

Summary

html2jade is a useful tool for converting HTML into Jade format. It provides command-line and programmatic usage options, supports various platforms, and offers several features for customization. While it may require some manual fixing in certain cases, it is generally a reliable tool for converting HTML files into Jade.