Permalink
Commits on Jul 1, 2011
  1. Add a firstof filter.

    The firstof filter return the first element that is evaluated to True in
    a sequence, it return '' if all elements are evaluated to False.
    
    How to use ?
    ============
    
    {{ ['hello', baz]|firstof }} -> 'hello'
    {{ [0, False]|firstof }} -> ''
    {{ [0, False, foo]|firstof }} with foo='bar' -> 'bar'
    
    It's inspired by django firstof:
    https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#firstof
    committed Jul 1, 2011
Commits on Jun 30, 2011
  1. Merge pull request #41 from andymckay/master

    typo?
    mitsuhiko committed Jun 30, 2011
  2. fix typo

    andymckay committed Jun 30, 2011
Commits on Jun 17, 2011
  1. Merge pull request #39 from failberg/master

    Bugfix for list_templates in PackageLoader
    mitsuhiko committed Jun 17, 2011
Commits on Jun 14, 2011
  1. Fix list_modules for PackageLoader

    berg committed Jun 14, 2011
Commits on May 24, 2011
  1. Merge pull request #33 from razamatan/master

    jinja.vim subsumes htmljinja.vim
    mitsuhiko committed May 24, 2011
  2. More extensions in jinja debug

    mitsuhiko committed May 24, 2011
  3. Merge pull request #37 from fabiant7t/patch-1

    Fixed example of a division with a truncated integer result
    mitsuhiko committed May 24, 2011
Commits on May 22, 2011
Commits on May 19, 2011
  1. Merge pull request #36 from afandian/patch-1

    Kampala is the capital of Uganda!
    mitsuhiko committed May 19, 2011
Commits on May 13, 2011
Commits on May 7, 2011
  1. Merge pull request #30 from sevas/wordwrap-newline

    wordwrap filter should use the newline_sequence defined in current Environment
    mitsuhiko committed May 7, 2011
  2. Merge pull request #26 from jek/master

    Removes some dead code from self.block lookup path
    mitsuhiko committed May 7, 2011
  3. Merge pull request #28 from alanhogan/patch-1

    Clarity
    mitsuhiko committed May 7, 2011
Commits on May 1, 2011
Commits on Apr 29, 2011
  1. Clarity

    alanhogan committed Apr 29, 2011
Commits on Apr 25, 2011
  1. Removed dead code.

    jek committed Apr 25, 2011
  2. jinja.el: replace obsolete mumamo-find-possible-chunk with mumamo-qui…

    …ck-chunk-forward . This allows jinja mode to be used with nxhtml mode versions later than 2.07.
    
    Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
    kanakk committed with mitsuhiko Apr 20, 2011
Commits on Apr 18, 2011
Commits on Mar 13, 2011
  1. Fixed a test case

    mitsuhiko committed Mar 13, 2011
Commits on Feb 17, 2011
  1. Fixed filesizeformat filter. It should now conform to the official SI…

    … prefixes and use the correct prefixes for sizes greater than base ** 4.
    
    Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
    Alan Plum committed with mitsuhiko Feb 17, 2011
Commits on Feb 6, 2011
  1. Use actual release info

    mitsuhiko committed Feb 6, 2011
  2. Yay. PDF docs for Jinja2

    mitsuhiko committed Feb 6, 2011
Commits on Jan 29, 2011
  1. Another reference

    mitsuhiko committed Jan 29, 2011
  2. Reference to compile_templates

    mitsuhiko committed Jan 29, 2011
Commits on Jan 24, 2011