Patrick Hein 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2bc30bb780 
							
						 
					 
					
						
						
							
							templates: Implement placeholders function ( #3324 )  
						
						... 
						
						
						
						* caddyhttp, httpcaddyfile: Implement placeholders in template
* caddyhttp, httpcaddyfile: Remove support for placeholder shorthands in templates
* Update modules/caddyhttp/templates/templates.go
updates JSON doc
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
* Update modules/caddyhttp/templates/tplcontext.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
Co-authored-by: Matt Holt <mholt@users.noreply.github.com> 
						
						
					 
					
						2020-07-20 17:17:38 -06:00 
						 
				 
			
				
					
						
							
							
								Greg Anders 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c35820012b 
							
						 
					 
					
						
						
							
							templates: Disable hard wraps in Markdown rendering ( #3553 )  
						
						
						
						
					 
					
						2020-07-06 11:53:40 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							9770ce7c9f 
							
						 
					 
					
						
						
							
							Minor comment fix  
						
						
						
						
					 
					
						2020-04-27 14:49:27 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b1ce9d4db7 
							
						 
					 
					
						
						
							
							templates: Add env function ( closes   #3237 )  
						
						
						
						
					 
					
						2020-04-07 12:26:08 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							437d5095a6 
							
						 
					 
					
						
						
							
							templates: Use text/template; add experimental notice to docs  
						
						... 
						
						
						
						Using html/template.HTML like we were doing before caused nested include
to be HTML-escaped, which breaks sites. Now we do not escape any of the
output; template input is usually trusted, and if it's not, users should
employ escaping actions within their templates to keep it safe. The docs
already said this. 
						
						
					 
					
						2020-04-06 12:51:53 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							406df22a16 
							
						 
					 
					
						
						
							
							templates: Enable Goldmark's footnote extension ( closes   #3136 )  
						
						... 
						
						
						
						Also remove Table extension, since GFM (already enabled) apparently
enables strikethrough, table, linkify, and tasklist extensions.
https://github.com/yuin/goldmark#built-in-extensions  
						
						
					 
					
						2020-03-18 23:38:37 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							82bebfab8a 
							
						 
					 
					
						
						
							
							templates: Change functions, add front matter support, better markdown  
						
						
						
						
					 
					
						2019-12-23 12:56:41 -07:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a458544d9f 
							
						 
					 
					
						
						
							
							Minor enhancements/fixes to rewrite directive and template virt req's  
						
						
						
						
					 
					
						2019-10-16 15:18:02 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							abf5ab340e 
							
						 
					 
					
						
						
							
							caddyhttp: Improve ResponseRecorder to buffer headers  
						
						
						
						
					 
					
						2019-10-15 14:07:10 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							715e6ddf51 
							
						 
					 
					
						
						
							
							go.mod: Update dependencies  
						
						
						
						
					 
					
						2019-10-10 15:47:26 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ab885f07b8 
							
						 
					 
					
						
						
							
							Implement config adapters and beginning of Caddyfile adapter  
						
						... 
						
						
						
						Along with several other changes, such as renaming caddyhttp.ServerRoute
to caddyhttp.Route, exporting some types that were not exported before,
and tweaking the caddytls TLS values to be more consistent.
Notably, we also now disable automatic cert management for names which
already have a cert (manually) loaded into the cache. These names no
longer need to be specified in the "skip_certificates" field of the
automatic HTTPS config, because they will be skipped automatically. 
						
						
					 
					
						2019-08-09 12:05:47 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f217181293 
							
						 
					 
					
						
						
							
							mod: Use blackfriday's standard v2 module import path  
						
						
						
						
					 
					
						2019-07-15 17:33:08 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fdd871e177 
							
						 
					 
					
						
						
							
							go.mod: Append /v2 to module name; update all import paths  
						
						... 
						
						
						
						See https://github.com/golang/go/wiki/Modules#semantic-import-versioning  
						
						
					 
					
						2019-07-02 12:37:06 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							3177ee8010 
							
						 
					 
					
						
						
							
							Add license  
						
						
						
						
					 
					
						2019-06-30 16:07:58 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							006dc1792f 
							
						 
					 
					
						
						
							
							Use html/template for escaping by default  
						
						... 
						
						
						
						Allow HTML only with a few specific functions 
						
						
					 
					
						2019-06-27 13:30:41 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							81a9e125b5 
							
						 
					 
					
						
						
							
							Oops  
						
						
						
						
					 
					
						2019-06-21 08:52:15 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							70c788ce0c 
							
						 
					 
					
						
						
							
							Minor cleanups/improvements  
						
						
						
						
					 
					
						2019-06-21 08:08:26 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							15647bdfb7 
							
						 
					 
					
						
						
							
							templates: Remove context functions implemented by sprig  
						
						
						
						
					 
					
						2019-06-18 15:43:51 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							2663dd176d 
							
						 
					 
					
						
						
							
							Refactor templates execution; add sprig functions  
						
						
						
						
					 
					
						2019-06-18 15:17:48 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							6706c9225a 
							
						 
					 
					
						
						
							
							Implement templates handler; various minor cleanups and bug fixes  
						
						
						
						
					 
					
						2019-06-18 11:13:12 -06:00