Skip to content

blikblum/to-htm

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published