Mirror of the Rel4tion website/wiki source, view at <http://rel4tion.org>
Clone
HTTPS:
git clone https://vervis.peers.community/repos/yEzqv
SSH:
git clone USERNAME@vervis.peers.community:yEzqv
Branches
Tags
9.mdwn
[[!template id=ticket class=task]]
[[!meta title=“Add support for generator labels”]]
[[/projects/Kort]] has support for generator labels. A generator isn’t just <%>
, but can also have a label attached. Generators with identical labels get assigned the same Uid when running the generator.
In Idan, this is already possible using anchors. For example:
<%> =l myns:p myns:x
&l myns:q myns:y
&l myns:r myns:z
But Idan already provide several ways to do things, and this may perhaps look cleaner sometimes:
<%l> myns:p myns:x
<%l> myns:q myns:y
<%l> myns:r myns:z
For example, when editing a document and subjects can occasionally change between generator and reference, or between different references, generator labels can allow for faster and more intuitive editing.
Note that having no label for a generator means it gets a unique Uid. The generators with blank labels don’t share the Uid, each gets a different ones. The label feature is just an extension of plain generators.