Simple e-mail template tag

1
2
3
4
@register.simple_tag
def mailto(email, linktext=None):
    if linktext is None: linktext = email
    return '<a href="mailto:%s">%s</a>' % (email, linktext)

More like this

  1. Template Tag to protect the E-mail address by nitinhayaran 3 years, 3 months ago
  2. Template tag to create mailto links with options by celopes 3 years, 11 months ago
  3. email_links by sansmojo 5 years, 11 months ago
  4. Template tag for importing content from external url by dchandek 5 years, 1 month ago
  5. Add GET parameters from current request by naktinis 2 years ago

Comments

(Forgotten your password?)