Skip to main content
Version: Next

Custom templates

Code generation uses Scriban templates (.sbn) by default.

Search order

  1. Directory specified by --customTemplateDir
  2. Templates/ inside the release package (or under each language project)

To override a language, copy the corresponding bean.sbn / table.sbn / tables.sbn and edit them.

Common template variables (summary)

VariableMeaning
__ctxGeneration context
__name / __namespaceName and namespace
__top_moduletarget.topModule
__code_styleNaming style
__bean / __table / __enumCurrent type
__tablesTable collection (when generating Tables)