github.com/coveo/gotemplate@v2.7.7+incompatible/docs/doc_test/templates.rendered (about) 1 {% include navigation.html %} 2 {% raw %} 3 # Templates 4 5 ## Defining templates 6 7 ### Razor 8 ``` 9 ``` 10 11 ### Gotemplate 12 ``` 13 ``` 14 15 ## Using templates 16 17 ``` 18 ``` 19 20 | Razor | Gotemplate 21 | --- | --- 22 | ``` 23 This is a template with a variable here: Test 24 For each item in var2: 25 Print it: Test1 26 Print it: Test2``` | ``` 27 This is a template with a variable here: Test 28 For each item in var2: 29 Print it: Test1 30 Print it: Test2``` 31 32 ### Result 33 34 ``` 35 This is a template with a variable here: Test 36 For each item in var2: 37 Print it: Test1 38 Print it: Test2 39 ``` 40 41 {% endraw %}