Updated a6 ideas.
[artemus.git] / RELEASE_NOTES
blobd8f45c1c19afa850c3bf63d8cabee4f49bb13517
1 Artemus Release Notes
2 =====================
4 5.0.2
5 -----
7  - New features:
8    * The new operand `def' allows inline template definitions.
9    * Both the exec() and the process() methods accept
10      arguments in their calls that can be referenced with
11      dollar-prefixed arguments as usual.
12    * An `AUTOLOAD' template can be defined to be called
13      everytime a template is not found (instead of crashing).
15 5.0.1
16 -----
18  * The %% keyword returns the full extended hash.
19  * Fixed processing of file templates returning 0.
20  * A new function template `dump', to dump an expression
21    using Data::Dumper.
22  * Fixed a bug in processing ARTEMUS_STR.
24 5.0.0
25 -----
27  * New milestone release. The Artemus language has been
28    completely rewritten to be a LISP-like, compiled
29    machine. No backward compatibility is provided (other
30    than including the old 4.x module in the distribution).
31    The new 5.x language is faster, more flexible, less
32    cumbersome (for example, there's no need for escaping
33    inner blocks that should execute only conditionally)
34    and include support for translateable strings.
36 4.1.3
37 -----
39  * The `foreach' constructor now includes an optional
40    4th argument, the _header_, that will be appended
41    to the output in case it's different from the
42    previous iteration. This code block is expected to
43    contain dollar-prefixed arguments.
44  * New template function `item', to return an item
45    from a colon-separated list given its subscript.
46  * Fix `case' comparisons when the variable contains
47    carriage returns.
48  * Fix loader_func() to correctly process empty
49    templates.
50  * Unless a very grave bug or vulnerabity is found,
51    this will be the last 4.x release; next release
52    will jump to the 5.x branch. Please take note that
53    this new branch is intentionally incompatible
54    with current one. Anyway, the Artemus4.pm module
55    and associated tools are planned to be distributed
56    with the 5.x series for a very long time.
58 4.1.2
59 -----
61  * New template function `sort'.
62  * New template function `reverse'.
63  * Templates can be loaded from external sources by
64    using the new `loader_func' argument to new().
65  * The Perl module Artemus is now an alias for the
66    Artemus4 module, as a way to smooth the future
67    transition to version 5. No changes need to be
68    done.
70 4.1.1
71 -----
73  * New template function `case'.
74  * New template function `env', to get values from the
75    environment.
76  * New template function `size', to return the number
77    of elements in a colon-separated list.
78  * New template function `seq', to generate a sequence
79    between two numbers as a colon-separated list.
80  * Improved debugging information.
82 4.1.0
83 -----
85  * New template function `foreach', to implement loops.
86  * New template function `set', for assigning a value to
87    a variable.
88  * New template arithmethic functions `add' and `sub'.
89  * New template comparison functions `gt', `lt' and `eq'.
90  * New template logical functions `and', `or' and `not'.
91  * New template function `random'.
92  * Comments can now be included with the {% } markup (they
93    are deleted from the final output).
94  * Old cruft has been deleted from the script (ftp, makefile
95    and sitemap generation).
96  * Template parameters are always expanded (instead of short-
97    circuiting when one is not found).
98  * Artemus markup can be escaped to allow templates being used
99    from another ones with being executed first.