inem88 / riothorn

Render Riot.js tags server-side on the JVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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\"}");

About

Render Riot.js tags server-side on the JVM

License:Other


Languages

Language:JavaScript 98.4%Language:Java 1.6%