-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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:
- Parse template file and create AST
- Pre-process AST - optional
- Generate target source code from syntax free AST
- Compile generated source code - optional for compiled languages
- 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.