diff options
Diffstat (limited to 'src/templating/mustach.h')
-rw-r--r-- | src/templating/mustach.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/templating/mustach.h b/src/templating/mustach.h index 8c4a43f10..1b44582d5 100644 --- a/src/templating/mustach.h +++ b/src/templating/mustach.h @@ -19,11 +19,16 @@ struct mustach_sbuf; /* see below */ #define MUSTACH_VERSION_MINOR (MUSTACH_VERSION % 100) /** - * Maximum nested imbrications supported + * Maximum nested section supported */ #define MUSTACH_MAX_DEPTH 256 /** + * Maximum nested template supported + */ +#define MUSTACH_MAX_NESTING 64 + +/** * Maximum length of tags in mustaches {{...}} */ #define MUSTACH_MAX_LENGTH 4096 @@ -57,6 +62,7 @@ struct mustach_sbuf; /* see below */ #define MUSTACH_ERROR_ITEM_NOT_FOUND -10 #define MUSTACH_ERROR_PARTIAL_NOT_FOUND -11 #define MUSTACH_ERROR_UNDEFINED_TAG -12 +#define MUSTACH_ERROR_TOO_MUCH_NESTING -13 /* * You can use definition below for user specific error |