REJECTED: $mutable$ #512
Closed
amitu
started this conversation in
Ideas & RFCs
Replies: 1 comment
-
We do not this because of ftd.window suggestion. That allows us to create top level components, and such global variables can be passed to that top level component instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default
-- boolean $foo: true
is a mutable variable, but it can only be mutated by current module.$mutable$'
s default value ismodule
.Mutability scope: package
Mutability scope: public
This is not a great idea, but we do support it, any package can mutate it.
Mutability scope: main
Most of the times when you think of using
public
you actually want to usemain
.When a document
foo.ftd
is being rendered, it is themain
document.FPM folder special handling
Also the modules in
FPM
folder of the package wherefoo.ftd
belongs can also mutate$mutable$: main
variable.Or any module imported by
FPM
modules.We are doing this because most package level configuration of a package should be done in FPM folder.
Beta Was this translation helpful? Give feedback.
All reactions