Skip to content
Marek Fišera edited this page Jan 12, 2015 · 4 revisions

This library works like a template for templating systems. Project Neptuo.Templates.Compilation provides pipeline for parsing, compiling and executing templates.

Template processing typically consists of these steps:

  1. Parse template file and create AST
  2. Pre-process AST - optional
  3. Generate target source code from syntax free AST
  4. Compile generated source code - optional for compiled languages
  5. Execute compiled code

The main idea here is to separate template syntax and target code generator. This way, we are using same parsers and generate two different source codes, one in C# for server processing and one in javascript for client side processing. All these steps are typically wrapped in IViewService implementation.

Clone this wiki locally