https://github.com/theneuronproject/eft-parser
ef.js template parser
https://github.com/theneuronproject/eft-parser
Last synced: 7 months ago
JSON representation
ef.js template parser
- Host: GitHub
- URL: https://github.com/theneuronproject/eft-parser
- Owner: TheNeuronProject
- License: mit
- Created: 2017-03-12T16:32:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T12:13:58.000Z (about 3 years ago)
- Last Synced: 2025-08-10T08:47:14.862Z (7 months ago)
- Language: JavaScript
- Size: 458 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eft-parser
[](https://raw.githubusercontent.com/ClassicOldSong/eft-parser/master/LICENSE) [](https://www.npmjs.com/package/eft-parser) [](https://travis-ci.org/ClassicOldSong/eft-parser)
Parser for [ef.js](https://github.com/ClassicOldSong/ef.js) templates
## Usage
ES6
``` javascript
import parseEft from 'eft-parser'
// use `const parseEft = require('eft-parser')` for node.js
const template = 'Your awesome template here'
const ast = parseEft(template)
```
Browser
``` javascript
var template = 'Your awesome template here'
var ast = parseEft(template)
```
**Note:** ef.js has a builtin parser, but if you want a faster first render, parse the templates beforehand could be better.
**Note:** All debugging messages are disabled in the production version
## License
[MIT](http://cos.mit-license.org/)