Created
September 10, 2012 04:57
-
-
Save artofhuman/3688944 to your computer and use it in GitHub Desktop.
Django inclusion tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from django import template | |
register = template.Library() | |
@register.inclusion_tag('template.html', takes_context = True) | |
def tag(context): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment