Skip to content

Commit

Permalink
Merge branch 'release/v0.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ClassicOldSong committed May 13, 2020
2 parents f3ec482 + 5b7d343 commit eeb3bd8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,23 @@ var output = buble.transform( input, {
}
```
## Server Side Rendering
Use [domino](https://github.com/fgnass/domino) or [JSDom](https://github.com/jsdom/jsdom) for DOM simulation, for example using `domino`:
```js
const ef = require('ef.js')
const domino = require('domino')

const {Node, document} = domino.createWindow()

ef.setDOMSimulation({Node, document})
```
Then you can use it as it is in browser.
[undom](https://github.com/developit/undom) is currently not supported because it's lack of `documentFragment` support.
## Typing Support
**`HELP WANTED`**
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ef.js",
"version": "0.10.9",
"version": "0.11.0",
"description": "(maybe) An elegant HTML template engine & basic framework",
"main": "dist/ef.min.js",
"module": "src/ef.js",
Expand Down Expand Up @@ -39,14 +39,14 @@
"cross-env": "^7.0.2",
"eslint": "^7.0.0",
"jsdoc": "^3.6.4",
"rollup": "^2.9.1",
"rollup": "^2.10.0",
"rollup-plugin-browsersync": "^1.1.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-progress": "^1.1.2",
"rollup-plugin-uglify": "^6.0.4"
},
"dependencies": {
"ef-core": "^0.10.9",
"ef-core": "^0.11.0",
"eft-parser": "^0.10.6"
}
}
2 changes: 2 additions & 0 deletions src/ef.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
exec,
bundle,
isPaused,
setDOMSimulation,
mountOptions
} from 'ef-core'

Expand Down Expand Up @@ -86,6 +87,7 @@ export {
setParser,
parseEft,
mountOptions,
setDOMSimulation,
version
}

Expand Down

0 comments on commit eeb3bd8

Please sign in to comment.