Namespaces | |
| namespace | string_view |
Classes | |
| class | FunctionStorage |
| Class for builtin functions and user-defined callbacks. More... | |
| struct | SourceLocation |
| struct | InjaError |
| struct | ParserError |
| struct | RenderError |
| struct | FileError |
| struct | DataError |
| class | NodeVisitor |
| class | AstNode |
| Base node class for the abstract syntax tree (AST). More... | |
| class | BlockNode |
| class | TextNode |
| class | ExpressionNode |
| class | LiteralNode |
| class | DataNode |
| class | FunctionNode |
| class | ExpressionListNode |
| class | StatementNode |
| class | ForStatementNode |
| class | ForArrayStatementNode |
| class | ForObjectStatementNode |
| class | IfStatementNode |
| class | IncludeStatementNode |
| class | ExtendsStatementNode |
| class | BlockStatementNode |
| class | SetStatementNode |
| class | StatisticsVisitor |
| A class for counting statistics on a Template. More... | |
| struct | Template |
| The main inja Template. More... | |
| struct | LexerConfig |
| Class for lexer configuration. More... | |
| struct | ParserConfig |
| Class for parser configuration. More... | |
| struct | RenderConfig |
| Class for render configuration. More... | |
| struct | Token |
| Helper-class for the inja Lexer. More... | |
| class | Lexer |
| Class for lexing an inja Template. More... | |
| class | Parser |
| Class for parsing an inja Template. More... | |
| class | Renderer |
| Class for rendering a Template with data. More... | |
| class | Environment |
| Class for changing the configuration. More... | |
Typedefs | |
| using | Arguments = std::vector<const nlohmann::json*> |
| using | json = nlohmann::json |
| using | CallbackFunction = std::function<json(Arguments& args)> |
| using | VoidCallbackFunction = std::function<void(Arguments& args)> |
| using | TemplateStorage = std::map<std::string, Template> |
Functions | |
| SourceLocation | get_source_location (std::string_view content, size_t pos) |
| void | replace_substring (std::string &s, const std::string &f, const std::string &t) |
| std::string | render (std::string_view input, const json &data) |
| render with default settings to a string | |
| void | render_to (std::ostream &os, std::string_view input, const json &data) |
| render with default settings to the given output stream | |
| typedef std::vector< const json * > inja::Arguments = std::vector<const nlohmann::json*> |
Definition at line 57 of file MqttMapperPlugin.h.
| using inja::CallbackFunction = std::function<json(Arguments& args)> |
| using inja::json = nlohmann::json |
Definition at line 58 of file MqttMapperPlugin.h.
| using inja::TemplateStorage = std::map<std::string, Template> |
| using inja::VoidCallbackFunction = std::function<void(Arguments& args)> |
|
inline |
Definition at line 330 of file inja.hpp.
References inja::string_view::slice().
Referenced by inja::Lexer::current_position(), and inja::Renderer::throw_renderer_error().
|
inline |
render with default settings to a string
Definition at line 3059 of file inja.hpp.
References inja::Environment::Environment().
|
inline |
render with default settings to the given output stream
Definition at line 3066 of file inja.hpp.
References inja::Environment::parse().
|
inline |
Definition at line 353 of file inja.hpp.
Referenced by inja::Renderer::visit().