Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using handlebar templates in various syntax elements #1505

Open
RieksJ opened this issue Sep 11, 2024 · 0 comments
Open

Using handlebar templates in various syntax elements #1505

RieksJ opened this issue Sep 11, 2024 · 0 comments
Labels
Discussion enhancement Indicates new feature requests

Comments

@RieksJ
Copy link
Contributor

RieksJ commented Sep 11, 2024

Is your feature request related to a problem? Please describe.

It's not a frustration, just an idea that I came up with as I was preparing the TNO Conceptual Modelling Masterclass (MC).
In this MC, I have found it useful to be able to refer to atoms in sentences using {{SRC}} and {{TGT}}, which allows me to write

RELATION isParentOf[Person*Person] MEANING "{{SRC}} is the parent of {{TGT}}"

Not only is this much more readable that the current PRAGMA syntax, I can imagine that using this in combination with handlebar templates also opens much wider possibilities. For example, I can see them being used in violations and interfaces (combined, perhaps, with ampersand-tailored handlebars functions).

Describe the solution you'd like

I would like to have the ability to use handlebars expressions in various Ampersand syntax elements, such as MEANING, PURPOSE, PRAGMA, INTERFACEs, where the handlebars object (obviously) needs to be specified, but would contain elements such as SRC, TGT, SESSION, ROOTATOM (in an interface).

Describe alternatives you've considered

Additional context

@RieksJ RieksJ added enhancement Indicates new feature requests Discussion labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

1 participant