PackageTrack
Sign in Get early access

jinja

Jinja2 template engine for Dart. Variables, expressions, control structures and template inheritance.

0.7.0 79K downloads/mo #1220 most downloaded on pub.dev ykmnkmi/jinja.dart

What this package is like to depend on

Last release 1 months ago

14 Jul 2026

Release timing varies

gaps range from 1 weeks to 8 months

Some releases are documented

notes for 13 of 33 stable releases

1 version withdrawn

withdrawn after publishing

8 years old

50 releases · first in 2019

4 releases in the last 12 months

see the full history below

Release timeline

50 releases · Jan 2019 to Jul 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 50
  1. 0.7.0 14 Jul 2026
    Release notes
    • Fix unnecessary_library_name.
    • Continue CI work on fail.
    • Bump SDK version to 3.12.0.
    • Refactoring exceptions.
    • Lexer rewrite.
    • Update environment and parser.
    • Remove name, use only path.
    • Excpetions. Rename name to path.
    • Update README.md.
    • 0.7.0
    Open source →
    Release notes
    • Bump SDK version to 3.12.0.
    • Internal changes:
      • Lexer rewrite
    • Renamed:
      • TemplateNotFound:
        • name to path
      • TemplatesNotFound:
        • names to paths
    • Deprecated:
      • TemplateNotFound:
        • name
      • TemplatesNotFound:
        • names
    Open source →
  2. 0.6.7 18 May 2026
    Release notes
    • Bump SDK version to 3.11.0.
    • Update dependencies.
    • Format.
    Open source →
  3. 0.6.6 16 May 2026
    Release notes
    • Fixed:
      • Fix macro hoisting and runtime argument wrapping #40
    Open source →
  4. 0.6.5 04 Oct 2025
    Release notes
    • Added:
      • Expressions:
        • Ternary operator (condition ? trueValue : falseValue) as alternative to if-else expressions
          {{ user.isAdmin ? "Admin Panel" : "User Panel" }}
          {{ score > 60 ? "Pass" : "Fail" }}
          
        • Null coalescing operator (??) equivalent to or
          {{ variable ?? "default" }}
          {{ var1 ?? var2 ?? "final" }}
          
      • Variable names now support # and @ characters
        {{ #var }}, {{ var# }}, {{ @variable }}
        
    • Fixed:
      • Optimizer bug in dict literal constant evaluation
    Open source →
  5. 0.6.4 09 Jul 2025
    Release notes
    • Refactoring.
    Open source →
  6. 0.6.3 25 Jun 2025
    Release notes
    • Fix autoReload logic.
    • Refactoring.
    Open source →
  7. 0.6.2 12 Mar 2025
    Release notes
    • Added:
      • Statements:
        • try-catch block:
          {% try %}
            {{ x / y }}
          {% catch exception %}
            {{ exception | runtimetype }}: {{ exception }}
          {% endtry %}
          
      • Filters:
        • runtimetype
    Open source →
  8. 0.6.1 20 Feb 2025
    Release notes
    • Added:
      • List slices {{ list[start:stop] }}.
      • UndefinedError exception
      • UndefinedFactory typedef
      • Environment:
        • Environment({UndefinedFactory undefined}) argument
        • UndefinedFactory undefined field
      • Template:
        • Template({UndefinedFactory undefined}) argument
      • Filters:
        • null (none alias)
    Open source →
  9. 0.6.1-dev.5 27 Sep 2024 pre-release

    Nothing published for this version

  10. 0.6.1-dev.2 12 May 2024 pre-release

    Nothing published for this version

  11. 0.6.1-dev.0 11 May 2024 pre-release withdrawn

    Nothing published for this version

  12. 0.6.0 30 Mar 2024
    Release notes
    • Bump SDK version to 3.3.0.
    • Update dependencies.
    • Internal changes.
    • chrome platform tests.
    • Added:
      • Statements:
        • import
        • from
      • Template:
        • Template.fromNode({globals}) argument
        • globals field
    • Restored:
      • Conditional and variable extends statement variants
      • Choice, ignore missing and variable include statement variants
    • Changed:
      • Environment:
        • Environment.lex() return from List<Token> to Iterable<Token>
        • Environment.scan(tokens) argument type from List<Token> to Iterable<Token>
    • Removed:
      • Exceptions:
        • FilterArgumentError
      • *args and **kwargs support
    Open source →
  13. 0.5.0 07 Aug 2023
    Release notes
    • Minimal SDK version: 3.0.0.
    • Internal changes.
    • Added:
      • Template:
        • Template.fromNode(Environment environment, {String? path, required Node body}) constructor
      • Statements:
        • macro
        • call
      • Filters:
        • items
        • title
    • Changed:
      • Environment:
        • Environment({modifiers}) argument type from List<NodeVisitor> to List<Node Function(Node)>
        • modifiers type from List<NodeVisitor> to List<Node Function(Node)>
        • scan(...) return type from List<Node> to Node
        • parse(...) return type from List<Node> to Node
      • Template:
        • Template({modifiers}) argument type from List<NodeVisitor> to List<Node Function(Node)>
      • Filters:
        • truncate arguments are now positional
    • Removed:
      • Template:
        • Template.fromNodes(...) constructor
      • Statements:
        • autoescape
      • Filters:
        • forceescape
        • safe
        • unsafe
      • Tests:
        • escaped
    Open source →
  14. 0.5.0-dev.25 25 Jun 2023 pre-release

    Nothing published for this version

  15. 0.5.0-beta.30 27 Jul 2023 pre-release

    Nothing published for this version

  16. 0.4.2 22 Jan 2023
    Release notes
    • Internal changes.
    Open source →
  17. 0.4.1 15 Jan 2023
    Release notes
    • Update links.
    Open source →
  18. 0.4.0 15 Jan 2023
    Release notes
    • Minimal SDK version: 2.18.0.
    • Added:
      • passContext and passEnvironment functions
      • print to globals {{ do print(name) }}
      • Environment
        • Environment({lineCommentPrefix, lineStatementPrefix, newLine, autoReload, modifiers, templates}) constructor arguments
        • autoReload field
        • lexer field
        • lineCommentPrefix field
        • lineStatementPrefix field
        • loader field
        • modifiers field
        • newLine field
        • lex method
        • scan method
        • parse method
      • Template
        • Template({path, lineCommentPrefix, lineStatementPrefix, newLine, modifiers, templates}) constructor arguments
        • renderTo method
      • Exceptions (was internal):
        • TemplateError
        • TemplateSyntaxError
        • TemplateAssertionError
        • TemplateNotFound
        • TemplatesNotFound
        • TemplateRuntimeError
        • FilterArgumentError
      • Statements:
        • do
        • with
      • Filters:
        • dictsort
        • replace
        • reverse
        • safe
        • slice
        • striptags
        • truncate
        • wordcount
        • wordwrap
        • item
        • map
        • tojson
      • Test:
        • filter
        • test
    • Changed:
      • FieldGetter type definition renamed to AttributeGetter
      • default filter compare values with null, no boolean argument
      • defined and undefined tests compare values with null
      • Environment
        • Environment({getField}) constructor argument renamed to getAttribute
        • getField field renamed to getAttribute
      • Template
        • Template({parent}) constructor argument renamed to environment and doesn't copy the environment
        • renderMap method renamed to render
      • Loader.listSources method renamed to listTemplates
      • MapLoader.mapping field renamed to sources
      • FileSystemLoader
        • FileSystemLoader({paths}) argument is now non-nullable, defaults to ['templates']
        • moved to package:jinja/loaders.dart library
      • package:jinja/get_field.dart library renamed to package:jinja/reflection.dart
      • getField function renamed to getAttribute
    • Removed:
      • Undefined type and missing object
      • Environment.undefined method
      • Template.render method
      • FileSystemLoader:
        • FileSystemLoader({path, autoReload}) arguments
        • autoReload field
        • directory field
      • Slices and negative indexes
      • Conditional and variable extends statement variants
      • Choice, ignore missing and variable include statement variants
    • Internal changes
    Open source →
  19. 0.4.0-dev.68 01 Jan 2023 pre-release

    Nothing published for this version

  20. 0.4.0-dev.64 07 Dec 2022 pre-release

    Nothing published for this version

  21. 0.4.0-dev.63 04 Dec 2022 pre-release

    Nothing published for this version

  22. 0.4.0-dev.53 30 Oct 2022 pre-release

    Nothing published for this version

  23. 0.4.0-dev.51 12 Oct 2022 pre-release

    Nothing published for this version

  24. 0.4.0-dev.40 15 Jul 2022 pre-release

    Nothing published for this version

  25. 0.4.0-dev.31 27 Nov 2021 pre-release

    Nothing published for this version

  26. 0.4.0-dev.30 24 Nov 2021 pre-release

    Nothing published for this version

  27. 0.4.0-dev.24 29 Oct 2021 pre-release

    Nothing published for this version

  28. 0.4.0-dev.12 15 Aug 2021 pre-release

    Nothing published for this version

  29. 0.4.0-dev.11 13 Aug 2021 pre-release

    Nothing published for this version

  30. 0.4.0-dev.10 13 Aug 2021 pre-release

    Nothing published for this version

  31. 0.3.4 24 Jun 2021

    Nothing published for this version

  32. 0.3.1 24 Mar 2021

    Nothing published for this version

  33. 0.3.0 06 Mar 2021

    Nothing published for this version

  34. 0.2.4 17 May 2020

    Nothing published for this version

  35. 0.2.3 15 Feb 2020

    Nothing published for this version

  36. 0.2.2 30 Jan 2020

    Nothing published for this version

  37. 0.2.1 14 Jan 2020

    Nothing published for this version

  38. 0.2.0 14 Jan 2020

    Nothing published for this version

  39. 0.1.2 26 Aug 2019

    Nothing published for this version

  40. 0.1.1 26 Aug 2019

    Nothing published for this version

  41. 0.1.0 26 Aug 2019

    Nothing published for this version

  42. 0.0.8 30 Mar 2019

    Nothing published for this version

  43. 0.0.8+1 30 Mar 2019

    Nothing published for this version

  44. 0.0.7 04 Feb 2019

    Nothing published for this version

  45. 0.0.7+1 27 Mar 2019

    Nothing published for this version

  46. 0.0.6 03 Feb 2019

    Nothing published for this version

  47. 0.0.5 02 Feb 2019

    Nothing published for this version

  48. 0.0.4 28 Jan 2019

    Nothing published for this version

  49. 0.0.2 17 Jan 2019

    Nothing published for this version

  50. 0.0.1 17 Jan 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive