/riothorn

Render Riot.js tags server-side on the JVM

Primary LanguageJavaScriptOtherNOASSERTION

Riothorn

STATUS: Incomplete and experimental.

Renders Riot tags on the JVM using the Nashorn or Rhino JavaScript engines.

Usage

Riothorn riothorn = new Riothorn();
Tag tag = riothorn.compile("<hello><h1>Hello {opts.name}</h1></hello>");
String html = tag.renderJson("{\"name\": \"world\"}");