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