Skip to content

Commit

Permalink
New Version: 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
clarete committed Apr 25, 2021
1 parent c21464e commit 8374097
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 7 deletions.
29 changes: 26 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,9 @@ <h2 id="differences-from-jinja">Differences from Jinja</h2>
</p>

<ul class="org-ul">
<li>Many built-in filters</li>
<li>Some built-in filters</li>
<li>For loop variables (loop.index, loop.first, loop.last, etc)</li>
<li>Include statement</li>
<li>Whitespace Control</li>
<li><del>Undefined Variables</del></li>
<li>List and tuple literals</li>
<li>Else branch in for loops</li>
<li>Macros, Macro Calls and Import</li>
Expand All @@ -166,6 +164,31 @@ <h2 id="differences-from-jinja">Differences from Jinja</h2>
<h2 id="changelog">Changelog</h2>
<div class="outline-text-2" id="text-changelog">
</div>
<div id="outline-container-0-1-6" class="outline-3">
<h3 id="0-1-6">0.1.6</h3>
<div class="outline-text-3">
<ul class="org-ul">
<li>Default variables to <code>undefined</code> instead of raising an error</li>
<li>Added test operator <code>is</code> that is another syntax for passing
parameters to functions that have a defined signature, they must
return a Boolean value. e.g.: <code>{% if something is defined %}</code>.</li>
<li>Support <code>{% include %}</code> statements (Thanks to <a href="https://github.com/guilhermecomum/">Guilherme Guerra</a>)</li>
<li>New tests added: <code>defined</code>, <code>divisible</code></li>
<li>New filters added: <code>take</code> (Thanks to <a href="https://github.com/markokocic">Marko Kocić</a>), <code>abs</code>,
capitalize, <code>escape</code> (<code>e</code>), <code>float</code>, <code>join</code>, <code>length</code>, <code>max</code>,
<code>min</code>, <code>round</code>, and <code>title</code>. Documentation is still ongoing, and
help is wanted :)</li>
<li>Filter deprecated: <code>getattr</code>, please use <code>attr</code> instead</li>
<li>fix: for loop must access expression via value stack [<a href="https://github.com/clarete/templatel/commit/42be57bed82335636ce159bcb861f28377ec6c0c">commit</a>]</li>
<li>fix: parsing floating point numbers [<a href="https://github.com/clarete/templatel/commit/80b2b355da92b4bb37b4ffa373cfafc562d60f1a">commit</a>]</li>
<li>fix: filter operator precedence [<a href="https://github.com/clarete/templatel/commit/7e6034ec20b633ac6e8a9acd1b2cfc7126d1a30a">commit</a>]</li>
<li>fix: operators for remainder of division (<code>%</code>) and exponential
<code>**</code> implemented. They were present in the sintax but didn't
have an implementation</li>
</ul>
</div>
</div>

<div id="outline-container-0-1-5" class="outline-3">
<h3 id="0-1-5">0.1.5</h3>
<div class="outline-text-3">
Expand Down
23 changes: 20 additions & 3 deletions docs/src/index.org
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@

Templatel doesn't implement the following features:

- Many built-in filters
- Some built-in filters
- For loop variables (loop.index, loop.first, loop.last, etc)
- Include statement
- Whitespace Control
- +Undefined Variables+
- List and tuple literals
- Else branch in for loops
- Macros, Macro Calls and Import
Expand All @@ -88,6 +86,25 @@

* Changelog

** 0.1.6
* Default variables to ~undefined~ instead of raising an error
* Added test operator ~is~ that is another syntax for passing
parameters to functions that have a defined signature, they must
return a Boolean value. e.g.: ~{% if something is defined %}~.
* Support ~{% include %}~ statements (Thanks to [[https://github.com/guilhermecomum/][Guilherme Guerra]])
* New tests added: ~defined~, ~divisible~
* New filters added: ~take~ (Thanks to [[https://github.com/markokocic][Marko Kocić]]), ~abs~,
capitalize, ~escape~ (~e~), ~float~, ~join~, ~length~, ~max~,
~min~, ~round~, and ~title~. Documentation is still ongoing, and
help is wanted :)
* Filter deprecated: ~getattr~, please use ~attr~ instead
* fix: for loop must access expression via value stack [[[https://github.com/clarete/templatel/commit/42be57bed82335636ce159bcb861f28377ec6c0c][commit]]]
* fix: parsing floating point numbers [[[https://github.com/clarete/templatel/commit/80b2b355da92b4bb37b4ffa373cfafc562d60f1a][commit]]]
* fix: filter operator precedence [[[https://github.com/clarete/templatel/commit/7e6034ec20b633ac6e8a9acd1b2cfc7126d1a30a][commit]]]
* fix: operators for remainder of division (~%~) and exponential
~**~ implemented. They were present in the sintax but didn't
have an implementation

** 0.1.5
- New filters added: ~first~, ~last~, ~getattr~ and ~default~
- New API for removing a template from an environment by name:
Expand Down
2 changes: 1 addition & 1 deletion templatel.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
;;
;; Author: Lincoln Clarete <lincoln@clarete.li>
;; URL: https://clarete.li/templatel
;; Version: 0.1.5
;; Version: 0.1.6
;; Package-Requires: ((emacs "25.1"))
;;
;; Copyright (C) 2020-2021 Lincoln Clarete
Expand Down

0 comments on commit 8374097

Please sign in to comment.