Skip to content

Commit

Permalink
Refactored the Diet template compiler.
Browse files Browse the repository at this point in the history
Building of the final D code is now abstracted in OutputContext so that changes can be made centrally and the rest of the code is more readable (e.g. no double escaped string literals).

Also string concatenations in the generated code are avoided now to safe on memory allocations. There are still some calls to _toString and htmlEscape that need to be eliminated so that there are no allocations left.
  • Loading branch information
s-ludwig committed Dec 30, 2012
1 parent 020a106 commit 23e60b0
Showing 1 changed file with 222 additions and 220 deletions.
Loading

0 comments on commit 23e60b0

Please sign in to comment.