diff --git a/README.md b/README.md index 6b813cf..dc0ecb6 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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() diff --git a/package.json b/package.json index af1a7bb..d0684ad 100644 --- a/package.json +++ b/package.json @@ -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",