...

Text file src/github.com/noirbizarre/gonja/testData/statements/with.tpl

Documentation: github.com/noirbizarre/gonja/testData/statements

     1new style
     2Start '{% with what_am_i=simple.name %}I'm {{what_am_i}}{% endwith %}' End
     3Start '{% with what_am_i=simple.name %}I'm {{what_am_i}}11{% endwith %}' End
     4Start '{% with number=7, what_am_i="guest" %}I'm {{what_am_i}}{{number}}{% endwith %}' End
     5
     6more with tests
     7{% with first_comment=complex.comments|first %}{{ first_comment.Author }}{% endwith %}
     8{% with first_comment=complex.comments|first %}{{ first_comment.Author.Name }}{% endwith %}
     9{% with first_comment=complex.comments|last %}{{ first_comment.Author.Name }}{% endwith %}

View as plain text