split in html template

1
2
3
4
5
6
@register.simple_tag
def kes(gelenveri, isaret, bas, son):

    print gelenveri, isaret, bas, son

    return gelenveri.split(isaret)[int(bas):int(son)]

More like this

  1. split_contents2 for template tags by bl4th3rsk1t3 3 years, 11 months ago
  2. Template tag "ifregex" and "ifnotregex" by arthurfurlan 3 years, 12 months ago
  3. twitter_status by zodman 4 years, 8 months ago
  4. Slightly better media path tag by ubernostrum 6 years, 1 month ago
  5. TemplateTag to Split a List into Uniform Chunks by cmcavoy 5 years, 2 months ago

Comments

ckarrie2 (on June 21, 2012):

Please post in english only. Thank you!

#

(Forgotten your password?)