Skip to content

Releases: riot/ssr

v6.0.0

21 Nov 12:54
Compare
Choose a tag to compare
  • 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

06 Aug 13:25
Compare
Choose a tag to compare
  • 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

22 Mar 12:53
Compare
Choose a tag to compare
  • Update dependencies

v4.2.0

29 Dec 23:48
Compare
Choose a tag to compare
  • Add the renderAsync and renderAsyncFragments methods closing #13

v4.1.1

15 Sep 21:06
Compare
Choose a tag to compare
  • Update: npm dependencies

v4.1.0

04 Jun 20:16
Compare
Choose a tag to compare
  • Add the option parameter to the register method #4