jsx-to-htmltemplate

0.1.4 • Public • Published

jsx-to-htmltemplate

An experimental cli utility to convert JSX into html template. It also support different templating engines like java freemarker to render a template engine specific format

Installation

Cli was tested with Node.js v9+.

Install the dependencies and devDependencies and start the server.

$ npm install -g jsx-htmltemplate
$ jsx-htmltemplate

Plugins

jsx-htmltemplate is based on plugin system. Behind the scene, it uses babel plugin to trasnpile es6 classes containing jsx in render function and convert them into generic html code. This html code is tranpiled into language and template engine specific html template using plugins. Currently the build is shipped with a Java freemarker template engine plugin converting JSX into a Apache Freemarker template

Plugin README
Java Freemarker posthtml-jsxhtml-freemarker

Todos

  • Write Tests

License

MIT License

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i jsx-to-htmltemplate

    Weekly Downloads

    4

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    7.38 kB

    Total Files

    7

    Last publish

    Collaborators

    • apuravchauhan