diff --git a/Project.toml b/Project.toml index fd83aefa7..ff860fab7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Franklin" uuid = "713c75ef-9fc9-4b05-94a9-213340da978e" authors = ["Thibaut Lienart "] -version = "0.10.60" +version = "0.10.61" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/eval/codeblock.jl b/src/eval/codeblock.jl index 7a830ad56..8d4356c7d 100644 --- a/src/eval/codeblock.jl +++ b/src/eval/codeblock.jl @@ -47,6 +47,9 @@ function should_eval(code::AS, rpath::AS) # 0. the page is currently delayed, skip evals isdelayed() && return false + # 0b. force no eval + locvar(:noeval)::Bool && return false + # 1. global setting forcing all pages to reeval FD_ENV[:FORCE_REEVAL] && return true diff --git a/src/utils/vars.jl b/src/utils/vars.jl index 992c7b363..d832ee3df 100644 --- a/src/utils/vars.jl +++ b/src/utils/vars.jl @@ -117,6 +117,7 @@ const LOCAL_VARS_DEFAULT = [ # --------------- # CODE EVALUATION "reeval" => dpair(false), # whether to reeval all pg + "noeval" => dpair(false), # whether to disable code eval "showall" => dpair(false), # if true, notebook style "fd_eval" => dpair(false), # toggle re-eval # ------------------