Open EmadHelmi opened 2 years ago
This is not yet supported.
This is not yet supported.
So you mean that there is no way even to get the identifier names in a template? I saw some parsing tools but all of them are locally used. I should write a local function but I need to access the template variables. Isn't there any way?
So you mean that there is no way even to get the identifier names in a template?
Yes, that's correct. There is no official or supported way to do so. I don't know about custom solutions though.
There are 2 issues in here:
user
in my template and also I have used if
these 2 shouldnt be recognized as a similar token type first is identifier and the other is keywordIf these issues are resolved then yes we can implement what @EmadHelmi needs manually
say this is my
template
file:and in this simple code I want to render the template
In a way I want to get an error if the defined context does not match the variables in the template or get used variable names in the template. How can I do this?