Skip to content

Commit

Permalink
Merge pull request #310 from jennybc/prefer-glue-data
Browse files Browse the repository at this point in the history
Prefer glue_data() when data might be list-ish, not an actual environment
  • Loading branch information
richfitz committed Jan 10, 2024
2 parents c51efee + 4683f20 commit 1344908
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ odin_file <- function(...) {


glue_whisker <- function(template, data) {
glue::glue(template, .envir = data, .open = "{{", .close = "}}",
.trim = FALSE)
glue::glue_data(data, template, .open = "{{", .close = "}}", .trim = FALSE)
}


Expand Down

0 comments on commit 1344908

Please sign in to comment.