diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index aa61b912b4..c311607af7 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -1014,7 +1014,7 @@ Here's how you'd use this new version of the tag: .. code-block:: html+django - {% current_time "%Y-%M-%d %I:%M %p" %}

The time is {{ current_time }}.

+ {% current_time "%Y-%m-%d %I:%M %p" %}

The time is {{ current_time }}.

.. admonition:: Variable scope in context @@ -1032,7 +1032,7 @@ like so: .. code-block:: html+django - {% current_time "%Y-%M-%d %I:%M %p" as my_current_time %} + {% current_time "%Y-%m-%d %I:%M %p" as my_current_time %}

The current time is {{ my_current_time }}.

To do that, you'll need to refactor both the compilation function and ``Node``