Knights-templater

Latest version: v1.3

Safety actively analyzes 688027 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.3

----------------

Features:

- Replaced `loader.load_template` with `loader.TemplateLoader`

All templates that need to load templates [`extends`, `include`, etc] MUST
now have a loader passed to their Parser.

Fixes:

- Don't resolve builtins via the context

1.2

----------------

Syntax Changes

+ Make ``extends`` and ``load`` require string argument.

Optimisations

+ Inline _iterable into __call__
+ Changed escape_html and escape_js to lambdas

Fixes:

- Count line numbers from 1
- Set line numbers on all nodes returned from parse_node

1.1

----------------

Features:

+ Added _iterator() method
+ Added {% super %} tag
+ Added ``static``, ``now`` and ``url`` helpers to compat.django
+ Fixed Django engine wrapper, and renamed to dj
+ ``loader.load_template`` now calls `os.path.abspath` on dirs

Fixes:

- Moved more code generation into Parser from kompiler.
- Removed debug flag
- Don't look up 'self' through context
- Fixed non-trivial for source values

1.0

----------------

Initial release.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.