Profound.js Directives

Even though Node.js is coded as an interpreted language, meaning the developer does not explicitly compile the code, there is a still a compilation process that takes place.

In fact, Node.js compiles JavaScript source code into native machine code, instead of interpreting it in real time. This is one of the many reasons why Node.js applications generally perform and scale well.

The behind-the-scene compilation happens on-the-fly whenever the code is executed for the first time. The code is not recompiled again unless the developer changes something in the source or the server is restarted.

Profound.js allows you to modify what code is compiled using compile directives.

All directives start with a # sign. They must start at the beginning of a source code line with no leading spaces. Other than the directive itself and any parameters to the directive, no other information should appear on the line.