mikebridge / Liquid.NET

.Net Port of the Liquid template language
MIT License
61 stars 15 forks source link

Error accumulator #45

Closed mikebridge closed 9 years ago

mikebridge commented 9 years ago

When generating an AST with LiquidASTGenerator.Generate(), a programmer can pass an onParserError Action to capture the errors. (Normally a programmer wouldn't do that directly.)

When rendering a template with LiquidTemplate.Render(), the aller can pass an onRenderingError Action which captures errors.

When using the default CachingTemplateParser, it will now avoid caching when there is a template error.

Errors in includes are reported to the parent renderer, but also rendered inline (by default). The old behaviour was to throw an exception up to the top.

closes #44

codecov-io commented 9 years ago

Current coverage is 91.72%

Merging #45 into master will increase coverage by +0.45% as of 11c86e6

@@            master     #45   diff @@
======================================
  Files          134     134       
  Stmts         4296    4348    +52
  Branches       446     450     +4
  Methods          0       0       
======================================
+ Hit           3921    3988    +67
+ Partial        150     143     -7
+ Missed         225     217     -8

Review entire Coverage Diff as of 11c86e6

Powered by Codecov. Updated on successful CI builds.