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:
Lubomir I. Ivanov 2018-06-01 20:43:31 +03:00
parent 9611e92cf0
commit 2209054226

View file

@ -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:
|====================