Шаблон под rust



Here’s an example of a recursive macro: {% macro factorial(n) %} {% if n > 1 %}{{ n }} — {{ self::factorial(n=n-1) }}{% else %}1{% endif %} {% endmacro factorial %} Macros body can contain all normal Tera syntax with the exception of macros definition, block and extends. Unfortunately, with compiler plugins being still unstable, I don’t think I will start working on that. Read about trait bounds to see why and how. Changelog Change log is available in the source tree named as CHANGELOG.md.

Похожие записи: