eft-parser

0.16.5 • Public • Published

eft-parser

GitHub license npm Build status

Parser for ef.js templates

Usage

ES6

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

<script src="dist/eft-parser.js"></script>
<script>
	var template = 'Your awesome template here'
	var ast = parseEft(template)
</script>

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

Package Sidebar

Install

npm i eft-parser

Weekly Downloads

6

Version

0.16.5

License

MIT

Unpacked Size

15.8 kB

Total Files

5

Last publish

Collaborators

  • classicoldsong