Skip to content

Commit

Permalink
noeval
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Oct 24, 2021
1 parent c94317b commit 63d757f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Franklin"
uuid = "713c75ef-9fc9-4b05-94a9-213340da978e"
authors = ["Thibaut Lienart <[email protected]>"]
version = "0.10.60"
version = "0.10.61"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
3 changes: 3 additions & 0 deletions src/eval/codeblock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/utils/vars.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ------------------
Expand Down

0 comments on commit 63d757f

Please sign in to comment.