mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix render bug
This commit is contained in:
		@@ -146,7 +146,7 @@ func compile(options RenderOptions) *template.Template {
 | 
			
		||||
				tmpl := t.New(filepath.ToSlash(name))
 | 
			
		||||
 | 
			
		||||
				for _, funcs := range options.Funcs {
 | 
			
		||||
					tmpl.Funcs(funcs)
 | 
			
		||||
					tmpl = tmpl.Funcs(funcs)
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				template.Must(tmpl.Funcs(helperFuncs).Parse(string(buf)))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user