Metadata-Version: 1.0
Name: django-meio-easytags
Version: 0.2
Summary: An easy way to create custom template tags for Django's templating system.
Home-page: http://github.com/vbmendes/django-meio-easytags
Author: Vinicius Mendes
Author-email: vbmendes@gmail.com
License: BSD
Description: django-meio-easytags
        ====================
        
        An easy way to create custom template tags for Django's templating system.
        
        Usage
        =====
        
        Just subclass the EasyNode and create the method render_context and register
        the template tag:
        
        	from django.template import Library
        	from easytags.node import EasyNode
        	
        	register = Library()
        	
        	class SumNode(EasyNode):
        	
        	    def render_context(self, context, arg1, arg2, arg3=0):
        	        return int(arg1) + int(arg2) + int(arg3)
        	
        	register.tag('sum', SumNode.parse)
        
        EasyNode will take care of the template tag's parsing, resolving variable
        and inspecting if the args are ok with the ``render_context`` signature.
        In the example above, you can use the sum tag in any of the forms below:
        
        	{% sum "1" "2" %}
        	{% sum "1" arg2="2" %}
        	{% sum arg1="1" arg2="2" %}
        	{% sum arg2="2" arg1="1" %}
        
        It's almost like calling methods in Python.
        
        In this example, ``arg3`` is optional and defaults to 0. So you may use or not this arg.
        
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
