Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blikblum/to-htm
Conversion tool from JSX or Handlebars to htm (tagged template literal)
https://github.com/blikblum/to-htm
handlebars htm jsx lit-html
Last synced: 23 days ago
JSON representation
Conversion tool from JSX or Handlebars to htm (tagged template literal)
- Host: GitHub
- URL: https://github.com/blikblum/to-htm
- Owner: blikblum
- License: mit
- Created: 2019-04-18T17:19:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-28T23:22:19.000Z (over 5 years ago)
- Last Synced: 2024-10-01T00:20:53.895Z (about 1 month ago)
- Topics: handlebars, htm, jsx, lit-html
- Language: JavaScript
- Homepage: https://blikblum.github.io/to-htm/web/dist/
- Size: 1.13 MB
- Stars: 37
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# to-htm
Conversion tool from JSX or Handlebars to [htm](https://github.com/developit/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**](https://blikblum.github.io/to-htm/web/dist/)
### CLI
#### Install
npm install -g to-htm
#### Usage
to-htm
Where file-pattern is a glob. Example:
to-htm **/*.hbs### Todo
- Improve cli (add options)### Credits
- [htm](https://github.com/developit/htm)
- [handlebars-to-jsx](https://github.com/danakt/handlebars-to-jsx)### Copyright
2019 - Luiz Américo Pereira CâmaraMIT License