diff --git a/docs/quickstart.rst b/docs/quickstart.rst index d9be9618..71336a22 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -205,6 +205,8 @@ You can add variable sections to a URL by marking sections with as a keyword argument. Optionally, you can use a converter to specify the type of the argument like ````. :: + from markupsafe import escape + @app.route('/user/') def show_user_profile(username): # show the user profile for that user @@ -422,7 +424,7 @@ markup to HTML) you can mark it as safe by using the :class:`~markupsafe.Markup` class or by using the ``|safe`` filter in the template. Head over to the Jinja 2 documentation for more examples. -Here is a basic introduction to how the :class:`~jinja2.Markup` class works:: +Here is a basic introduction to how the :class:`~markupsafe.Markup` class works:: >>> from markupsafe import Markup >>> Markup('Hello %s!') % 'hacker' diff --git a/docs/reqcontext.rst b/docs/reqcontext.rst index bb8419a6..811e5950 100644 --- a/docs/reqcontext.rst +++ b/docs/reqcontext.rst @@ -256,8 +256,9 @@ exceptions where it is good to know that this object is actually a proxy: - The proxy objects cannot fake their type as the actual object types. If you want to perform instance checks, you have to do that on the object being proxied. -- If the specific object reference is important, for example for - sending :ref:`signals` or passing data to a background thread. +- The reference to the proxied object is needed in some situations, + such as sending :ref:`signals` or passing data to a background + thread. If you need to access the underlying object that is proxied, use the :meth:`~werkzeug.local.LocalProxy._get_current_object` method::