Ticket #12135: 12135a.diff

File 12135a.diff, 589 bytes (added by Tim Graham, 14 years ago)
  • docs/howto/custom-template-tags.txt

     
    862868The difference here is that ``do_current_time()`` grabs the format string and
    863869the variable name, passing both to ``CurrentTimeNode3``.
    864870
     871As in previous examples, you need to register the tag before you can use it::
     872
     873    register.tag('get_current_time', do_current_time)
     874
    865875Parsing until another block tag
    866876~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    867877
Back to Top