docs: Yet again try to fix github-pages rendering of Command_Templates.md

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-12-03 12:41:47 -05:00
parent 23f547169c
commit a2d1e03b91
1 changed files with 2 additions and 2 deletions

View File

@ -400,6 +400,7 @@ UPDATE_DELAYED_GCODE ID=report_temp DURATION=0
``` ```
### Save Variables to disk ### Save Variables to disk
<!-- {% raw %} -->
If a If a
[save_variables config section](Config_Reference.md#save_variables) [save_variables config section](Config_Reference.md#save_variables)
@ -409,11 +410,9 @@ restarts. All stored variables are loaded into the
`printer.save_variables.variables` dict at startup and can be used in `printer.save_variables.variables` dict at startup and can be used in
gcode macros. to avoid overly long lines you can add the following at gcode macros. to avoid overly long lines you can add the following at
the top of the macro: the top of the macro:
<!-- {% raw %} -->
``` ```
{% set svv = printer.save_variables.variables %} {% set svv = printer.save_variables.variables %}
``` ```
<!-- {% endraw %} -->
As an example, it could be used to save the state of 2-in-1-out hotend As an example, it could be used to save the state of 2-in-1-out hotend
and when starting a print ensure that the active extruder is used, and when starting a print ensure that the active extruder is used,
@ -435,3 +434,4 @@ gcode:
{% set svv = printer.save_variables.variables %} {% set svv = printer.save_variables.variables %}
ACTIVATE_EXTRUDER extruder={svv.currentextruder} ACTIVATE_EXTRUDER extruder={svv.currentextruder}
``` ```
<!-- {% endraw %} -->