From 8bc2a74f984d8ee97cc1e9ab604ebdc21f5d020a Mon Sep 17 00:00:00 2001 From: Dan Marshall Date: Wed, 21 Feb 2024 14:56:10 -0800 Subject: [PATCH] Fix urls to Jinja templates --- master/_sources/plugins/gettingstarted.rst.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/master/_sources/plugins/gettingstarted.rst.txt b/master/_sources/plugins/gettingstarted.rst.txt index 59cbf1fb8..405fff545 100644 --- a/master/_sources/plugins/gettingstarted.rst.txt +++ b/master/_sources/plugins/gettingstarted.rst.txt @@ -479,7 +479,7 @@ Also adjust your plugin's ``templates/helloworld_navbar.jinja2`` like this: OctoPrint injects the template variables that your plugin defines prefixed with ``plugin__`` into the template renderer, so your ``url`` got turned into ``plugin_helloworld_url`` which you can now use as a simple -`Jinja2 Variable `_ in your plugin's template. +`Jinja2 Variable `_ in your plugin's template. Restart OctoPrint and shift-reload the page in your browser (to make sure you really get a fresh copy). The link should still work and point to the URL we defined as default. @@ -1048,7 +1048,7 @@ might show what's possible with a few lines of code already. Finally, just take .. seealso:: - `Jinja Template Designer Documentation `_ + `Jinja Template Designer Documentation `_ Jinja's Template Designer Documentation describes the syntax and semantics of the template language used by OctoPrint's frontend.