  
      {{ somevariable|cut:"0" }}
  
  Most filters don't take arguments. In this case, just leave the argument out of
  your function. Example::
  
      def lower(value): # Only one argument.
          "Converts a string into all lowercase"
          return value.lower()
  
 
</s> remove         "Converts a string into all lowercase"
 </s> add         """Converts a string into all lowercase""" </s> remove        your filter function and set it to ``True``, like so::
 </s> add        your filter function and set it to ``True``, like so:

       .. code-block:: python </s> remove A couple of things to note about the ``simple_tag`` helper function:
 </s> add A few things to note about the ``simple_tag`` helper function: </s> remove back to the main page. Here's what the Python function would look like::
 </s> add back to the main page. Here's what the Python function would look like:

.. code-block:: python </s> remove Shortcut for simple tags
~~~~~~~~~~~~~~~~~~~~~~~~
 </s> add Simple tags
~~~~~~~~~~~
your function. Example:

.. code-block:: python
  
      {{ somevariable|cut:"0" }}
  
  Most filters don't take arguments. In this case, just leave the argument out of
your function. Example:

.. code-block:: python
  
      def lower(value): # Only one argument.
          "Converts a string into all lowercase"
          return value.lower()
  
keep keep keep keep replace keep keep keep keep keep
 Brushed up the custom template tag 'howto' guide by moving the assignment_tag doc to a more appropriate place (i.e. under the "Setting a variable in the context" section), adding cross references, fixing a few minor inaccuracies and doing a little PEP8 cleanup.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16909 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
docs/howto/custom-template-tags.txt