A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://jinja2cpp.github.io/docs/usage/error_reporting.html below:

Error Reporting - Jinja2C++ project

Error reporting Table of contents
  1. Common concepts
  2. Parse-time errors
  3. Runtime errors
Common concepts

TODO:

Parse-time errors

It’s difficult to write complex template completely without errors. Missed braces, wrong characters, incorrect names… Everything is possible. So, it’s crucial to be able to get informative error report from the template engine. Jinja2Cpp provides such kind of report. Template::Load method (and TemplateEnv::LoadTemplate respectively) return instance of ErrorInfo class which contains details about the error. These details include:

For example, this template:

produces the following error message:

noname.j2tpl:1:11: error: Expected expression, got: ','
{{ {'key'=,} }}
       ---^-------
Runtime errors

TODO:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4