open-campaign-logger / generator-library

This repository contains the generator library files for https://campaign-logger.com/generator which can be referenced like this: "{lib:adjColor}".
Apache License 2.0
31 stars 13 forks source link

Feature request: concatenating string variables #22

Closed evesala closed 6 years ago

evesala commented 6 years ago

Many of my generators contain terms that may not be familiar to the reader, or otherwise would benefit from a bit longer explanation.

For now I have included the explanations in parenthesis (like this), but with longer generator output this can become cumbersome (as one might expect) especially if multiple explanations are included (in the same resultPattern) (like this).

One solution is to use a footnote property that results requiring an explanation will write to. But in order to be useful, the system would need to be able to add to the already existing variable instead of overwriting it.

Of course footnotes would not be the only way to use concatenated strings. They could be useful for example when generating lists of items or persons that could be later repeated in a different context.

JochenLinnemann commented 6 years ago

Have you tested set: { "x": "{var:x} new text" }?

evesala commented 6 years ago

This old issue can indeed be solved with the current functionality, thanks for the reminder!

Closing this outdated ticket.