An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# eft-parser
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/ClassicOldSong/eft-parser/master/LICENSE) [![npm](https://img.shields.io/npm/dt/eft-parser.svg?style=flat-square)](https://www.npmjs.com/package/eft-parser) [![Build status](https://img.shields.io/travis/ClassicOldSong/eft-parser.svg?style=flat-square)](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/)