Skip to content
Commits on Mar 1, 2014
  1. @kaos

    Drop old tests (fixes #134)

    kaos committed
  2. @kaos

    Migrate functional tests (#134)

    kaos committed
    Give proper error message on ssi include file not found (#85).
  3. @kaos
Commits on Feb 28, 2014
  1. @kaos
Commits on Feb 27, 2014
  1. @kaos

    New `load` tag (#100)

    kaos committed
    Need more tests before being ready to close this.
  2. @kaos

    Don't throw errors around, add them to the context (#85)

    kaos committed
    Provide position info with error/warning when available.
    Also added a few clauses to format_error for missing error messages.
  3. @kaos
Commits on Feb 26, 2014
  1. @kaos

    Fix bug in new scope routine (#101)

    kaos committed
    When there was some text surrounding the sub scope,
    it only kept the last piece.
    Tests updated to catch this.
  2. @kaos
  3. @kaos

    Make endregroup tag optional (fixes #101)

    kaos committed
    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 24, 2014
  1. @kaos
  2. @kaos

    Restructure compiler code (close #136)

    kaos committed
    The common infrastructure routines are left in erlydtl_compiler,
    while those specific for compiling to .beam files are moved into
    erlydtl_beam_compiler and generic stuff is put in erlydtl_compiler_utils.
Commits on Feb 22, 2014
  1. @kaos

    Use merl [1] for compiling the erlang AST tree (fixes #123).

    kaos committed
    Also, `number_literals` are now converted to erlang integers in the scanner.
    
    [1] https://github.com/richcarl/merl
Commits on Feb 17, 2014
  1. @seriyps @kaos

    Compile-time translation of `{%trans%}` and `_(..)` by blocktrans_fun #…

    seriyps committed with kaos
    …131
    
    So, to fully translate template to multiple languages, we need just
    blocktrans_fun and blocktrans_locales in compile-time.
    No need for gettext server in runtime, to translate `trans` and `_(..)`.
  2. @kaos

    Autoescape on by default (Close #120, see #80)

    kaos committed
    This to be Django compatible. Pass `{auto_escape, false}` as compile
    option when compiling the template to disable auto escaping.
Commits on Feb 15, 2014
  1. @seriyps
  2. @seriyps
  3. @seriyps

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

    seriyps committed
    This matches Django behaviour.
  4. @kaos

    Fix error reporting.

    kaos committed
    Fixes #129.
Commits on Feb 14, 2014
  1. @kaos
Commits on Jan 29, 2014
  1. @kaos

    Bring compile_dir up-to-date.

    kaos committed
    Fixes #121.
    Close #122.
Commits on Jan 18, 2014
  1. @kaos

    Add auto_escape option.

    kaos committed
    In order to be Django compatible, the `auto_escape` option should be
    used when compiling the template.
    
    Fixes #80.
  2. @kaos

    Add tests for error reporting.

    kaos committed
  3. @kaos

    Clean up generated code.

    kaos committed
    Fixes #109.
    We had too many warnings from the generated code on for loops,
    in order to continue working on #98.
Commits on Jan 17, 2014
  1. @kaos

    Collect errors/warnings from compile:forms/2 properly.

    kaos committed
    Reverted the out_dir -> outdir option rename.
    Move compiler_options more into the background as an advanced option.
Commits on Jan 16, 2014
  1. @kaos

    Work in progress on implementing #98.

    kaos committed
  2. @kaos

    Check template checksums also for binaries.

    kaos committed
    When compiling a template not from file (e.g. from a binary value),
    keep track of the checksum the same way as is done when compiling templates on file.
    
    Moved default value for compiler_options back to the record definition.
Commits on Jan 14, 2014
  1. @kaos

    Properly handle compiler options.

    kaos committed
    Support the return* and report* compiler options, propagating them properly.
    
    Renamed option `out_dir` to `outdir` to match the erlang compiler option naming.
    `out_dir` kept as alias for backwards compatibility.
    
    Added `no_load` option for cases where the compiled template is not to be used right away.
    
    Include checksum also when compiling templates from binaries rather than files. The source file name reported by `module_info(source)` is changed to `/<text>` instead of the current path at compile time.
    
    `compile_dir` branch of the code not tested. :/
    
    Fixes #28, #116.
Commits on Jan 10, 2014
  1. @kaos

    Tests for self-recursive blocks.

    kaos committed
    Might have been nice to get some kind of warning or hint,
    but at least it doesn't crash.
    
    This closes #112.
Commits on Dec 13, 2013
  1. @kaos

    {% if 0 %} should also be false.

    kaos committed
Commits on Dec 10, 2013
  1. @kaos

    Support for record variables.

    kaos committed
    Fixes #105.
    
    In order for records to be recognized, the record fields info needs to
    be passed to erlydtl when the template is being compiled.
Commits on Dec 9, 2013
  1. @kaos

    Fix django compatibility for custom tag arguments.

    kaos committed
    Fixes #78.
    
    Arguments to custom tags can now be any number of values and/or key-value pairs.
  2. @davidw @kaos

    Fixed the custom_tag4 setup.

    davidw committed with kaos
  3. @davidw @kaos
  4. @kaos
Something went wrong with that request. Please try again.