Releases: riot/ssr
Releases · riot/ssr
v6.0.0
- Update to Riot.js 5
- Update npm dependencies
This completely backward compatible please check the Riot.js 5 Changelog https://github.com/riot/riot/releases/tag/v5.0.0
v5.0.0
- Replace jsdom in favor of a lightweight DOM library basichtml
- Improve rendering performance. The rendering is ~5 Times faster
- Add full html rendering #10. Riot.js can now be used as Javascript Server Side template engine. Check the example below:
My-App.riot
<html>
<head>
<title>{ state.message }</title>
<meta each={ meta in state.meta } {...meta}/>
</head>
<body>
<p>{ state.message }</p>
<script src='path/to/a/script.js'></script>
</body>
<script>
export default {
state: {
message: 'hello',
meta: [{
name: 'description',
content: 'a description'
}]
}
}
</script>
</html>
index.js
import MyApp from './my-application.riot'
import render from '@riotjs/ssr'
const html = render('html', MyApp)
v4.2.1
- Update dependencies
v4.2.0
v4.1.1
- Update: npm dependencies