mirror of https://github.com/grpc/grpc.io.git
				
				
				
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			353 B
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			353 B
		
	
	
	
		
			HTML
		
	
	
	
{{/*
 | 
						|
  Param substring shortcode: psubstr PARAM_NAME START
 | 
						|
*/}}
 | 
						|
{{- $name := (.Get 0) -}}
 | 
						|
{{ $start := (.Get 1) -}}
 | 
						|
{{ with $name -}}
 | 
						|
  {{ with ($.Page.Param .) -}}
 | 
						|
    {{ substr . $start -}}
 | 
						|
  {{ else -}}
 | 
						|
    {{ errorf "Param %q not found: %s" $name $.Position -}}
 | 
						|
  {{ end -}}
 | 
						|
{{ else -}}
 | 
						|
  {{ errorf "Missing param key: %s" $.Position -}}
 | 
						|
{{ end -}}
 |