Skip to content

Commit

Permalink
#107 todo
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar-manukyan committed Dec 9, 2024
1 parent c465b22 commit c444060
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/generate_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ generate_code <- function(spec, domain, out_dir = ".") {

one_topic <- identical(length(code_by_topics), 1L)

# TODO
# - refactor into function
# - dynamically select the templates based on domain
styled_code <- if (one_topic) {
code_by_topics |>
unlist() |>
Expand Down

0 comments on commit c444060

Please sign in to comment.