top | item 6715025

(no title)

frontendbeauty | 12 years ago

(author) Cool! What's the JavaScript runtime on the server? Something JVM-based?

discuss

order

thurn|12 years ago

The server code is still Java, but our template language (https://developers.google.com/closure/templates/) compiles to both JS and Java.

sitkack|12 years ago

Why not render the templates in PhantomJs and have a user account that can push the rendered template back into the server cache. No need to duplicate the work of writing two backends. Or hell, just use Rhino and generate the reified pages on the server.

Also, you can't patent this now.

taude|12 years ago

The benefits of sharing the templates on both client and server, but with a more robust backend technology. This sounds interesting to me.

lennel|12 years ago

We use the full closure stack and tofu alongside the decoration phase works a treat.