RAFT
#45

Standard data filters

Data and Logic · Working

What is this skill?

Standard data filters are built-in Nunjucks functions like 'default', 'lower', 'upper', and 'trim' that transform data when displaying it in templates.

Why is it important?

  • Default values – Show placeholder text when data is missing
  • Text formatting – Capitalise names or format strings consistently
  • Data cleaning – Remove whitespace or standardise input
  • Safe display – Handle missing or undefined values gracefully

Where to learn more