/to-htm

Conversion tool from JSX or Handlebars to htm (tagged template literal)

Primary LanguageJavaScriptMIT LicenseMIT

to-htm

Conversion tool from JSX or Handlebars to htm (tagged template literal)

Features

  • Convert from JSX to htm (tagged template literal)
  • Convert from Handlebars to JSX or htm (tagged template literal)
  • Format output code with prettier
  • Option to toggle React attributes names (className, htmlFor etc)

Web app

See live version here

CLI

Install

 npm install -g to-htm

Usage

to-htm <file-pattern>

Where file-pattern is a glob. Example:

to-htm **/*.hbs

Todo

  • Improve cli (add options)

Credits

Copyright

2019 - Luiz Américo Pereira Câmara

MIT License