powered by
Once a template has been parsed, it can be printed with color highlighting of the templating blocks.
# S3 method for jinjar_template print(x, ..., n = 10)
A parsed template (use parse_template()).
parse_template()
These dots are for future extensions and must be empty.
Number of lines to show. If Inf, will print all lines. Default: 10.
Inf
10
input <- ' {{ title }} {% for item in navigation -%} {{ item.caption }} {% endfor -%} {# a comment #} ' x <- parse_template(input) print(x) print(x, n = Inf)
Run the code above in your browser using DataLab