diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-06-01 20:43:31 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-06-01 21:38:01 +0300 |
commit | 2209054226f463a3fd0b88a34e9dcd18e15b363b (patch) | |
tree | 5af00b22cb51a22a7ece1791b459c01592e4f209 /Documentation | |
parent | 9611e92cf0d90e4ce1eaf3c3adbaac0f78f4c884 (diff) | |
download | subsurface-2209054226f463a3fd0b88a34e9dcd18e15b363b.tar.gz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/user-manual.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt index 9abe2b544..b0202022b 100644 --- a/Documentation/user-manual.txt +++ b/Documentation/user-manual.txt @@ -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: |==================== |