HomeDocumentation

Compiling Templates to Javascript

The X compiler compiles your templates to vanilla javascript. There are several ways to compile your javascript templates. They can be compiled dynamically on the client in a browser, or on the server as a build process. We'll begin by looking at the compiler as an object, gradually looking to higher sophistication using node in order to precompile out templates optionally as AMD modules.

Compiler