Permalink
Commits on Jul 20, 2012
  1. Merge pull request #35 from psyeugenic/egil/support-elif

    Support {% elif %} clause in if template tag syntax
    evanmiller committed Jul 20, 2012
Commits on Jul 18, 2012
  1. Merge pull request #27 from garazdawi/regroup_extend

    Allow nested keys in regroup and dictsort
    evanmiller committed Jul 18, 2012
  2. Make dictsort use deep find

    garazdawi committed with garazdawi May 18, 2012
  3. Extend the regroup syntax to support nested keys

    This commit allows the user to use nested regroup keys. ie.
    
        {% regroup builds by host.name as hostname_list %}
    garazdawi committed with garazdawi May 18, 2012
Commits on Jun 27, 2012
  1. More flexible "_" function

    evanmiller committed Jun 27, 2012
Commits on Jun 8, 2012
  1. Merge pull request #30 from bluegraybox/master

    date 'h' format fix
    evanmiller committed Jun 8, 2012
  2. Fixed date formatting for 'h', added tests.

    Removed extra integer_to_list conversion from tag_to_value/3 for $h.
    Added tests for "h", "H", "i", and "Y" to each test case.
    Colin MacDonald committed Jun 8, 2012
Commits on May 11, 2012
  1. Support arbitrary number of arguments to ifchanged

    Evan Miller committed May 11, 2012
  2. Merge pull request #26 from fauxsoup/master

    Use lists module for erlydtl_runtime:find_value
    evanmiller committed May 11, 2012
Commits on May 7, 2012
  1. Merge pull request #24 from thge/master

    Extended {%ifchanged %} syntax to accept parameters
    evanmiller committed May 7, 2012
  2. Support {% ifchanged Expression(s) %} like Django does

    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.
    thge committed May 4, 2012
Commits on Feb 19, 2012
  1. New compile-time option: custom_filters_modules

    Evan Miller committed Feb 19, 2012
  2. Support for {% regroup %} tag.

    Evan Miller committed Feb 19, 2012
  3. Support for {% ifchanged %} tag

    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.
    Evan Miller committed Feb 19, 2012
Commits on Feb 18, 2012
  1. {% blocktrans %} no longer uses identifiers

    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.
    Evan Miller committed Feb 18, 2012
Commits on Jan 17, 2012
  1. Fix compile_dir

    Evan Miller committed Jan 17, 2012
Commits on Jan 9, 2012
  1. Merge pull request #20 from nyaray/master

    truncatechars template filter from django dev.
    evanmiller committed Jan 9, 2012
Commits on Dec 15, 2011
  1. Compile to binaries by default

    Evan Miller committed Dec 15, 2011
Commits on Aug 4, 2011
  1. custom_tags_modules (plural) and reqd applications

    Evan Miller committed Aug 4, 2011
Commits on Jun 30, 2011
  1. I18n fixes

    Evan Miller committed Jun 30, 2011
  2. Merge pull request #15 from cstar/master

    changed unicode:characters_to_list back to binary_to_list
    evanmiller committed Jun 30, 2011
  3. Merge pull request #14 from peeb/master

    Support for input text with no URLs in it in erlydtl_filters:urlize/2
    evanmiller committed Jun 30, 2011
Commits on Jun 29, 2011
  1. Test with extended character

    cstar committed Jun 29, 2011
  2. Modified urlize/2 to support cases where the input text has no URLs i…

    …n it.
    Paul Burt committed Jun 29, 2011
Commits on Jun 27, 2011
  1. Blocktrans utilities

    Evan Miller committed Jun 27, 2011
Commits on Jun 25, 2011
  1. Support _("syntax") in custom tags

    Evan Miller committed Jun 25, 2011
Commits on Jun 24, 2011
  1. Support "with" in blocktrans tag

    Evan Miller committed Jun 24, 2011
  2. Fix README

    Evan Miller committed Jun 24, 2011
  3. Merge branch 'master' of github.com:evanmiller/erlydtl

    Conflicts:
    	src/erlydtl_compiler.erl
    Evan Miller committed Jun 24, 2011