Reads in HTML, reads out JSON
Project description
# simple-engine
`simple-engine` reads in an html file and generates a JSON map corresponding to the html.
## usage
put a `config.json` file in a place that makes it convenient to type the source and destination paths out (a root
directory will do)
ex. `config.json`
{
"src": "app/index.html",
"dest": "output.js",
"toplevelid": "start"
}
then run `engine` from the command line.
### options
| option | description | default |
| :----: | :---------: | :----: |
| `src` | source html file | `index.html` |
| `dest` | destination file | `simpleDom.js` |
| `toplevelid` | html id where the interpreter starts | `start` |
`simple-engine` reads in an html file and generates a JSON map corresponding to the html.
## usage
put a `config.json` file in a place that makes it convenient to type the source and destination paths out (a root
directory will do)
ex. `config.json`
{
"src": "app/index.html",
"dest": "output.js",
"toplevelid": "start"
}
then run `engine` from the command line.
### options
| option | description | default |
| :----: | :---------: | :----: |
| `src` | source html file | `index.html` |
| `dest` | destination file | `simpleDom.js` |
| `toplevelid` | html id where the interpreter starts | `start` |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simple-engine-core-0.2.tar.gz
(2.0 kB
view hashes)