mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	user-manual: add note that some Grantlee variables need '|safe'
Grantlee variables need the '|safe' extension, so that they can use HTML tags. Without it, tags like '<br>' would not be converted to line breaks - e.g. when exporting planned dive notes. Add a note about that in the user manual. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
		
							parent
							
								
									9611e92cf0
								
							
						
					
					
						commit
						2209054226
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -5035,6 +5035,12 @@ Only a subset of the dive data is exported: | |||
| |firstGas| (*string*) first used gas | ||||
| |===================== | ||||
| 
 | ||||
| Please note that some of the variables like 'notes' need to be extended with '|safe' to support HTML tags: | ||||
| .... | ||||
| 	<p> {{ dive.notes|safe }} </p> | ||||
| .... | ||||
| Otherwise tags like 'br' would not be converted to line breaks.  | ||||
| 
 | ||||
| _Subsurface_ also exports *template_options* data. This data must be used as _CSS_ values to provide a dynamically | ||||
| editable template. The exported data is shown in the following table: | ||||
| |==================== | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue