- Grammar fix: easier use of dictionaries in assignment blocks, no conflict with embedding syntax.
- ...
- Non-standard operator
<>
can be used as an alternative for!=
to avoid ambiguity with a verbatim block mark (!
) insideif
blocks. - Shortcut attributes
.CLS
and#ID
no longer need spaces around, sodiv#main.left.top
is now a correct tag occurrence. - The if-else operator returns "" (empty string) rather than None when the else branch is missing.
- Grammar extended to support expression blocks (
$ EXPR
) without an assignment. Can be used for method calls, like in$myList.append(3)
. - Fixed html-escaping of special symbols inside HTML attribute values.
- Built-in tag/function
dedent
accepts now an optional argumentfull
. - Built-in tag/function
inline
renamed tomerge
. - New built-in tag and function,
inline
, converts all newline characters to HTML entities
for safe inclusion in indentation-sensitive blocks like<pre>
or<textarea>
. - New built-in functions:
$crop()
, alias$truncate()
. - New built-in tag,
doctype
, to produce a DOCTYPE declaration at the beginning of a page. - New built-in tag,
custom "NAME"
in HyperHTML runtime. It outputs non-standard HTML tag names, so that HTML Custom Elements (Web Components) can be used inside target documents.
- Bug fix: exception raised in a "try" block caused "dedent" operations to be skipped, leading to incorrect calculation of indentations of subsequent blocks. Changed to always revert to an initial indentation when translating a body node.
- Bug fix: post-translation state of an imported module included only output symbols. Changed to include all symbols (slots), since they can also be needed for hypertag expansion.
- Syntax extended: loops may have an
else
clause. - Syntax extended: tags can be referenced inside expressions using the tag embedding operator
%
.
- Added Django integration: a Hypertag backend (
hypertag.django.backend.Hypertag
) that can be plugged into a Django application. - Changed syntax for importing from dynamic context: added "context" blocks in place of "from ~ import ..." syntax.
- Fixed and improved the import mechanism, classes:
Runtime
,Loader
,Module
.
Initial release.