-
|
How can we manage to generate reserved character sequences like "[%", "%]", "[" or "]" with EGL scripts? Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
There's no escaping mechanism for such sequences but as a workaround you could use string concatenation as shown below. This will produce: On a related note, in this branch we have added support for custom tags to EGL (see these tests for examples) but I wanted to write a few more tests before merging into the main branch. Would such a feature be useful for your use case? |
Beta Was this translation helpful? Give feedback.
-
|
Hello Kolovos, Thanks for your reply. I tried this kind of approach already but, unfortunately, this does not work with templates. Then, the content produced in the Test.txt file is: Rather than: The point is that the output of a template is interpreted as EGL code. So, whatever the way you build the character sequences, they would be interpreted the same way. So, an escape mechanism would be really useful, especially for those who want to "generate generators"! |
Beta Was this translation helpful? Give feedback.
-
|
You could achieve this by using EGX to run your EGL-generating template, as shown here. Would this work for your use case? |
Beta Was this translation helpful? Give feedback.
You could achieve this by using EGX to run your EGL-generating template, as shown here. Would this work for your use case?