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. caching parsed templates by forgems 6 years, 4 months ago
  2. Template tag: split list to n sublists by movielady 5 years, 9 months ago
  3. TemplateTag to Split a List into Uniform Chunks by cmcavoy 6 years, 1 month ago
  4. packjs templatetag by kyprizel 6 years, 4 months ago
  5. russian pluralize filter by naprasno 4 years, 7 months ago

Comments

ckarrie2 (on June 21, 2012):

Please post in english only. Thank you!

#

(Forgotten your password?)