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.
## installation
`$ pip install simple-engine-core`
## usage
put a `engine.json` file in a place that makes it convenient to type the source and destination paths out (a root
directory will do)
ex. `engine.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.
## installation
`$ pip install simple-engine-core`
## usage
put a `engine.json` file in a place that makes it convenient to type the source and destination paths out (a root
directory will do)
ex. `engine.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.5.tar.gz
(1.1 kB
view hashes)