Skip to content

Commit

Permalink
Modify README
Browse files Browse the repository at this point in the history
  • Loading branch information
ClassicOldSong committed Aug 13, 2017
1 parent aea5b1f commit 94600c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Community project(s):

## Usage
``` javascript
import { create, inform, exec, bundle, setParser, parseEft, t, version } from 'ef.js'
import { create, onRender, inform, exec, bundle, setParser, parseEft, t, version } from 'ef.js'
// or you can use import * as ef from 'ef.js'

version // Version string of ef.js
Expand All @@ -53,7 +53,8 @@ const template3 = t`Your awesome template`
const component1 = new template1() // Create a component without data
const component2 = new template2(data) // Create a component and then updates it's data

inform() // Tell ef to cache operation **USE WITH CARE**
onRender(callback) // Cache operations to execute on next render
inform() // Tell ef to cache operations **USE WITH CARE**
exec() // Tell ef to execute all cached operations **USE WITH CARE**
exec(true) // Force execute cached operations **USE WITH CARE**
bundle(callback) // Wrapper for inform() and exec()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ef.js",
"version": "0.3.4-beta.1",
"version": "0.3.4-beta.2",
"description": "(maybe) An elegant HTML template engine & basic framework",
"main": "dist/ef.min.js",
"module": "src/ef.js",
Expand Down

0 comments on commit 94600c2

Please sign in to comment.