https://github.com/binarymax/edda
Code generator for Restlang
https://github.com/binarymax/edda
Last synced: 6 months ago
JSON representation
Code generator for Restlang
- Host: GitHub
- URL: https://github.com/binarymax/edda
- Owner: binarymax
- License: mit
- Created: 2014-05-06T00:55:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-25T11:52:20.000Z (over 11 years ago)
- Last Synced: 2024-08-08T19:42:22.720Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 273 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Edda
Output generator for restlang
## Installation
```
npm install edda
```
## Usage
Currently there is only one way to run Edda:
```
var edda = require('edda');
edda.run(path,template,data,settings,callback);
```
Edda expects the following arguments:
- ```path```: The path to a directory that contains restlang source files (*.rest)
- ```template```: The filename of an underscore template file. ```_.template``` is used to generate the output.
- ```data```: An object containing any additional data that is used by the above template
- ```settings```: An object containing any Underscore settings (for example custom template interpolation)
- ```callback```: A callback that will be called when the process is complete, passing err (array of any errors) and out (array of output)
## Restlang
Edda was built specifically to generate target output from the Restlang parser. For more information on Restlang see https://github.com/binarymax/restlang.
##### _Made with love by Max Irwin (http://binarymax.com)_