Closed StarpTech closed 5 years ago
This can be solved by a custom renderer e.g link but how can I avoid that it will be transferred to the browser? Therefore using compiler hooks is not recommended by the markojs team.
The solution is already documented in https://markojs.com/docs/syntax/. We have to use the concise syntax --
to host text only in a tag template.
Imagine following use case: I would like to provide a
translation
component which accept one propertyi18n
and translate the value. I can't usetranslation.marko
because markojs is trying to find a dynamic component which is in my opinion also wrong because tags starts with
<
. The workaround is to wrap it with a html tag but this can't be the solution. I can't use makros because the tag must be available globally.