github.com/coveo/gotemplate@v2.7.7+incompatible/docs/doc_test/functions.md (about)

     1  {% include navigation.html %}
     2  {% raw %}
     3  # Functions
     4  
     5  ## Defining functions
     6  
     7  The following file is evaluated: [!extensions.gte](!extensions.gte)
     8  
     9  ## Calling functions
    10  
    11  ### Without arguments
    12  
    13  | Razor | Gotemplate
    14  | ---   | ---
    15  | ```@ChristmasTree()``` | ```{{ ChristmasTree }}```
    16  
    17  #### Result
    18  ```
    19                         ✾                    
    20                        ✾✾✾                   
    21                       ✾✾✾✾✾                  
    22                      ✾✾✾✾✾✾✾                 
    23                     ✾✾✾✾✾✾✾✾✾                
    24                    ✾✾✾✾✾✾✾✾✾✾✾               
    25                   ✾✾✾✾✾✾✾✾✾✾✾✾✾              
    26                  ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾             
    27                 ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾            
    28                ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾           
    29               ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾          
    30              ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾         
    31             ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾        
    32            ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾       
    33           ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾      
    34          ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾     
    35         ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾    
    36        ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾   
    37       ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾  
    38      ✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾✾
    39  ```
    40  
    41  ### With arguments (colors not shown)
    42  
    43  | Razor | Gotemplate
    44  | ---   | ---
    45  | ```@ChristmasTree(5, "Red", "Green", "a")``` | ```{{ ChristmasTree 5 "Red" "Green" "a" }}```
    46  
    47  #### Result
    48  ```
    49          a     
    50         aaa    
    51        aaaaa   
    52       aaaaaaa  
    53      aaaaaaaaa
    54  ```
    55  {% endraw %}