mintyfrankie / brilliant-CV

💼 another CV template for your job application, yet powered by Typst and more
https://typst.app/universe/package/brilliant-cv
Apache License 2.0
416 stars 19 forks source link

Minimize custom functions in template #54

Open mintyfrankie opened 1 month ago

mintyfrankie commented 1 month ago

Due to current Typst constraint, one still has to include some custom hacky functions in the template files. For example, in cy.typ when importing:

#import "@preview/brilliant-cv:2.1.0": cv
#let metadata = toml("./metadata.toml")
#let import-modules(modules, lang: metadata.language) = {
  for module in modules {
    include {
      "modules_" + lang + "/" + module + ".typ"
    }
  }
}

Instead of an ideal way:

#import "@preview/brilliant-cv:2.1.0": cv

This involves several files:

This involves two technical issues:

More to update in this thread, and we will see how to tackle them with Typst's upgrades.