mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-02 18:47:22 -05:00 
			
		
		
		
	templates: Update docs
This commit is contained in:
		
							parent
							
								
									b1ce9d4db7
								
							
						
					
					
						commit
						95f6bd7e5c
					
				@ -40,7 +40,7 @@ func init() {
 | 
				
			|||||||
// In addition to the standard functions and Sprig functions, Caddy adds
 | 
					// In addition to the standard functions and Sprig functions, Caddy adds
 | 
				
			||||||
// extra functions and data that are available to a template:
 | 
					// extra functions and data that are available to a template:
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// ##### **`.Args`**
 | 
					// ##### `.Args`
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// Access arguments passed to this page/context, for example as the result of a `include`.
 | 
					// Access arguments passed to this page/context, for example as the result of a `include`.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
@ -56,6 +56,14 @@ func init() {
 | 
				
			|||||||
// {{.Cookie "cookiename"}}
 | 
					// {{.Cookie "cookiename"}}
 | 
				
			||||||
// ```
 | 
					// ```
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
 | 
					// ##### `env`
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Gets an environment variable.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// ```
 | 
				
			||||||
 | 
					// {{env "VAR_NAME"}}
 | 
				
			||||||
 | 
					// ```
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
// ##### `.Host`
 | 
					// ##### `.Host`
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// Returns the hostname portion (no port) of the Host header of the HTTP request.
 | 
					// Returns the hostname portion (no port) of the Host header of the HTTP request.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user