react-all-the-things
Convert View + template to React component
const View = ;const template = ; const view = View;
+
<!-- templates/test.html --> {title}
⚛
const View = ; const view = View;
Installation
npm install -g ratt
Usage
$ ratt
Usage: ratt [options] <file>
Options:
-w, --write Write result to file instead of printing to stdout
--templates Path to templates, default 'platform'
--externals Print external references found. Works with .html files only
-v Print version number