Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix urls to Jinja templates #7

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions master/_sources/plugins/gettingstarted.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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_<plugin identifier>_`` into
the template renderer, so your ``url`` got turned into ``plugin_helloworld_url`` which you can now use as a simple
`Jinja2 Variable <https://jinja.palletsprojects.com/templates.html#variables>`_ in your plugin's template.
`Jinja2 Variable <https://jinja.palletsprojects.com/templates/#variables>`_ 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.
Expand Down Expand Up @@ -1048,7 +1048,7 @@ might show what's possible with a few lines of code already. Finally, just take

.. seealso::

`Jinja Template Designer Documentation <https://jinja.palletsprojects.com/templates.html>`_
`Jinja Template Designer Documentation <https://jinja.palletsprojects.com/templates/>`_
Jinja's Template Designer Documentation describes the syntax and semantics of the template language used
by OctoPrint's frontend.

Expand Down