Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TheNeuronProject/eft-parser

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

105 Commits
105 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ef.js template parser

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.