Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 19, 2015
  1. @A40in

    Adding support for "Assignment tags" (https://docs.djangoproject.com/…

    A40in authored
    …en/1.6/howto/custom-template-tags/)
    
    example: {% custom_tag as var_tag %}{{ var_tag }} more {{ var_tag }}
Commits on Dec 16, 2014
  1. @kaos

    support silent option in cycle tag (close #195).

    kaos authored
    Notice: we're still not supporting independently cycling the value
    using the `{% cycle varname %}` syntax (where `varname` is the name
    used in a previous `cycle .. as varname` tag).
  2. @kaos
Commits on Apr 15, 2014
  1. @kaos
Commits on Apr 10, 2014
  1. @kaos

    fix blocktrans bugs (#131)

    kaos authored
  2. @kaos

    support count and plural forms in blocktrans blocks (#131)

    kaos authored
    open question: we ought to support multiple plural tags
      to support languages that have more than two variations
      dependent on the count.
  3. @kaos
  4. @kaos
Commits on Apr 9, 2014
  1. @kaos

    fix #153: parse (and unparse) comment tags {# .. #}

    kaos authored
    call the {# .. #}-construct for comment tag (previously comment_inline).
    n.b. {% comment %} ... {% endcomment %} is a comment block.
    
    some cleanups in sources_parser + handle the new comment_tag token.
    
    beginnings of tests for the unparser (currently lives in the sources parser test suite).
Commits on Mar 21, 2014
  1. @seriyps
Commits on Feb 27, 2014
  1. @kaos

    New `load` tag (#100)

    kaos authored
    Need more tests before being ready to close this.
Commits on Feb 26, 2014
  1. @kaos
  2. @kaos

    Make endregroup tag optional (fixes #101)

    kaos authored
    Django does not have endregroup at all.
    We keep it as optional for backward compatibility with ErlyDTL.
    
    The dtl context has been moved into the treewalker record while
    traversing the template AST, to allow it to change on any node.
    
    Local scopes can now begin at any point in a block, and all
    nested scopes are automatically closed when the block scope ends.
Commits on Feb 15, 2014
  1. @seriyps

    Restrict `blocktrans` content to only strings and plain variables. #88

    seriyps authored
    This matches Django behaviour.
Commits on Dec 13, 2013
  1. @kaos

    Cleanup filter code to make it more generic.

    kaos authored
    This opens up the possibility for multiple args to filters in a
    transparent way.. ;)
Commits on Dec 9, 2013
  1. @kaos

    Fix django compatibility for custom tag arguments.

    kaos authored
    Fixes #78.
    
    Arguments to custom tags can now be any number of values and/or key-value pairs.
  2. @kaos
Commits on Dec 4, 2013
  1. @kaos

    for loop should be able to loop over values and filtered variables too.

    kaos authored
    Related, added test to prove that issue #99 is fixed.
Commits on Jun 15, 2013
  1. @kaos

    add customized yeccpre.hrl file.

    kaos authored
Commits on Apr 4, 2013
  1. @evanmiller
Commits on Jul 20, 2012
  1. @psyeugenic

    Add support for {% elif Expr %} syntax

    psyeugenic authored psyeugenic committed
Commits on Jul 18, 2012
  1. @evanmiller

    Merge pull request #27 from garazdawi/regroup_extend

    evanmiller authored
    Allow nested keys in regroup and dictsort
  2. @garazdawi

    Extend the regroup syntax to support nested keys

    garazdawi authored garazdawi committed
    This commit allows the user to use nested regroup keys. ie.
    
        {% regroup builds by host.name as hostname_list %}
Commits on Jun 27, 2012
  1. @evanmiller

    More flexible "_" function

    evanmiller authored
Commits on May 11, 2012
  1. Support arbitrary number of arguments to ifchanged

    Evan Miller authored
Commits on May 7, 2012
  1. @thge

    Support {% ifchanged Expression(s) %} like Django does

    thge authored
    Django ifchanged can accept parameters, so it is possible to check for a value
    which does not appear in output. Django documentation says to support one or
    more parameters, this implementation supports up to 4 paramters (only limited
    by the parser expression, this can be improved to support even more
    parameters when needed).
    
    {% for date in list %}
      {% ifchanged date.month %}
         {{ date.month }}:{{ date.day }}
      {% else %}
         {{ date.day }}
      {% endifchanged %}
    {% endfor %}
    
    See erlydtl_unittests for some other examples.
    
    The other (Django) syntax to use {% ifchanged %} without parameter works like before.
Commits on Feb 19, 2012
  1. Support for {% regroup %} tag.

    Evan Miller authored
  2. Support for {% ifchanged %} tag

    Evan Miller authored
    The implementation is a bit messy as it uses the process dictionary to
    check for previous values in a loop. But I could not think of a clean
    functional way to support this tag without rewriting the entire
    compiler.
Commits on Feb 18, 2012
  1. {% blocktrans %} no longer uses identifiers

    Evan Miller authored
    Previously {% blocktrans %} blocks required an identifier which would be
    passed as an atom to the blocktrans_fun function passed in at
    compile-time. This behavior was inconsistent with Django. Now identifiers
    are no longer used, and the blocktrans_fun function simply receives the
    block to be translated as a string.
    
    For convenience, compiled modules now have a translated_blocks/0
    function which returns a list of blocks that were translated at
    compile-time. A new helper module called blocktrans_extractor is
    provided for extracting blocktrans blocks prior to compilation.
    
    The implementation may result in some oddities; the translatable blocks
    are actually derived from the abstract syntax tree, so there may
    be whitespace or small syntactic differences between the blocks in
    the source code and the blocks used at translation-time. However,
    the blocktrans_extractor module will return blocks that are exactly
    compatible with the translatable blocks. One side-benefit of this
    appproach is that non-semantic whitespace will always be ignored;
    if two {% blocktrans %} blocks have slight syntactic differences
    but are semantically the same, you only need to provide a single
    translation to cover the two of them.
Commits on Jun 24, 2011
  1. Support "with" in blocktrans tag

    Evan Miller authored
  2. Preliminary blocktrans support

    Evan Miller authored
Commits on Mar 20, 2011
  1. @evanmiller
Commits on Mar 19, 2011
  1. @evanmiller

    Change "include" tag to follow Django behavior

    evanmiller authored
    Also support "parsed" keyword of "ssi" tag, which imitates previous
    behavior of "include".
  2. @evanmiller
  3. @evanmiller

    New tag: spaceless

    evanmiller authored
Something went wrong with that request. Please try again.