Closed yiwen101 closed 2 months ago
@yiwen101 To facilitate reuse, an outsider should be able to override variables to customize the component to fit her needs (yes, this is the opposite of normal variable overriding). That way, the component can be reused without changing its code.
@yiwen101 To facilitate reuse, an outsider should be able to override variables to customize the component to fit her needs (yes, this is the opposite of normal variable overriding). That way, the component can be reused without changing its code.
I see, thanks for the clarification. I just noticed that the documentation also specifies that "Global variables (_markbind/variables.md) will take precedence over any variables set via Nunjucks' tags (e.g. {% set %}).". This is quite counter intuitive.
I found another issue related to this. So sorry for posting this is duplicate issue.
Please confirm that you have searched existing issues in the repo
Yes, I have searched the existing issues
Any related issues?
No response
Tell us about your environment
MacOs
MarkBind version
Current master
Describe the bug and the steps to reproduce it
in _markbind/variables.md:
in index.md:
Expected behavior
I expect to see: "file name is index.md x is index.md",
but I actually see "file name is variable.md x is index.md"
Anything else?
No response