mirror of
				https://github.com/askama-rs/askama.git
				synced 2025-11-03 23:13:04 +00:00 
			
		
		
		
	Update book/src/template_syntax.md
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
This commit is contained in:
		
							parent
							
								
									ce73e73720
								
							
						
					
					
						commit
						c88c4015d9
					
				@ -921,9 +921,7 @@ Then if you don't pass a value for this argument, its default value will be used
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### Call
 | 
					### Call
 | 
				
			||||||
 | 
					
 | 
				
			||||||
you can specify a block for a call to be passed down as used as apart of a macro. For this case 
 | 
					You can use the content in the call block directly inside the macro by using `{{ caller() }}`:
 | 
				
			||||||
a block is denoted by `{% call(args) macro() %}`, ending with `{% endcall %}`. the callee is denoted by
 | 
					 | 
				
			||||||
`{{caller()}}`.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```jinja
 | 
					```jinja
 | 
				
			||||||
{% macro render_dialog(title, class='dialog') -%}
 | 
					{% macro render_dialog(title, class='dialog') -%}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user