Created
January 8, 2013 17:46
-
-
Save jaddison/4485991 to your computer and use it in GitHub Desktop.
django-simple-templates example assignment tag for use in simple page templates.
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
from django import template | |
from users.forms import EmailSignupForm | |
register = template.Library() | |
@register.assignment_tag | |
def get_signup_form(): | |
return EmailSignupForm() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment