[]
Validates all templates in the current document, finds any template tags that are malformed or used incorrectly.
public IEnumerable<TemplateError> Validate(bool markErrors = false)
Public Function Validate(Optional markErrors As Boolean = False) As IEnumerable(Of TemplateError)
| Type | Name | Description |
|---|---|---|
| bool | markErrors | If true, erroneous tags will be marked in the document, and a Comment with the error description will be added to each such occurrence. If false, the templates will be left as is, just the list of errors will be returned. |
| Type | Description |
|---|---|
| IEnumerable<TemplateError> | The list of all found template errors. |