Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gertvantslot committed Jun 1, 2017
1 parent 07dca79 commit f108257
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,27 @@ The above example could be parsed into something like:

## Usage

Download the .zip file and extract to a folder of choice.

`dotnet RazorLikeParser.dll <sketch folder>`

* `<sketch folder>`
The folder where the main .ino file is located.


All `<sketch folder>/data/*.cshtml` files will be parsed. Results will be placed in:

* `<sketch folder>/razor_def.ino`
This file will contain the fixed part of the output
* `<sketch folder>/razor_impl.ino`
This file will contain the parsed result.

Call `razor_setup(&server)` from your `setup()` to initialize these pages.

Do not forget to upload the `data` folder to the Flash/SPIFFS of the ESP8266.


### Example

See folder: src/Examples

0 comments on commit f108257

Please sign in to comment.