mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Fixed some more formatting bugs in [625]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -436,9 +436,12 @@ available to Django's template language:: | |||||||
|  |  | ||||||
| ``register_filter`` takes three arguments: | ``register_filter`` takes three arguments: | ||||||
|  |  | ||||||
|     1. The name of the filter -- a string |     1. The name of the filter -- a string. | ||||||
|     2. The Python function |     2. The compilation function -- a Python function (not the name of the | ||||||
|     3. A boolean, designating whether the filter requires an argument |        function as a string). | ||||||
|  |     3. A boolean, designating whether the filter requires an argument. This | ||||||
|  |        tells Django's template parser whether to throw ``TemplateSyntaxError`` | ||||||
|  |        when filter arguments are given (or missing). | ||||||
|  |  | ||||||
| The convention is to put all ``register_filter`` calls at the bottom of your | The convention is to put all ``register_filter`` calls at the bottom of your | ||||||
| template-library module. | template-library module. | ||||||
| @@ -563,8 +566,8 @@ Finally, use a ``register_tag`` call, as in ``register_filter`` above. Example:: | |||||||
|  |  | ||||||
| ``register_tag`` takes two arguments: | ``register_tag`` takes two arguments: | ||||||
|  |  | ||||||
|     * The name of the template tag -- a string |     1. The name of the template tag -- a string | ||||||
|     * The compilation function -- a Python function (not the name of the |     2. The compilation function -- a Python function (not the name of the | ||||||
|        function as a string) |        function as a string) | ||||||
|  |  | ||||||
| Setting a variable in the context | Setting a variable in the context | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user