Contents Menu Expand Light mode Dark mode Auto light/dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Betty 0.4.0a3 documentation
Logo
Betty 0.4.0a3 documentation
  • Installation
    • Installation via pip
    • Installation from source
  • Usage
    • Ancestry
      • Citation
      • Dates
      • Enclosure
      • Event
      • Event Type
      • File
      • Link
      • Media Type
      • Note
      • Person
      • Person Name
      • Place
      • Place Name
      • Presence
      • Presence Role
      • Privacy
      • Source
    • Asset Management
    • The command line
    • Application configuration
    • Environment variables
    • Extensions
      • The Cotton Candy extension
      • The Deriver extension
      • The Gramps extension
      • The HTTP API Documentation extension
      • The Maps extension
      • The nginx extension
      • The Privatizer extension
      • The Trees extension
      • The Wikipedia extension
    • GEDCOM
    • npm
    • Plugins
      • Entry point plugins
    • Projects
      • Project configuration
    • Templating
      • Filters
      • Globals
      • Tests
    • Translations
  • Development
    • Developing a Betty extension
    • Working on Betty’s translations
    • Testing Betty’s source code
  • API Documentation
  • About
    • Contributing to Betty
    • Copyright & license
Back to top
View this page

Filters¶

Jinja2 filters are like function calls, and specifically designed to transform data. In addition to Jinja2’s built-in filters, Betty provides the following:

  • camel_case_to_kebab_case

  • camel_case_to_snake_case

  • file

  • flatten

  • format_datey

  • format_degrees

  • hashid

  • image

  • json

  • locale_get_data

  • localize

  • map

  • minimize

  • negotiate_dateds

  • negotiate_localizeds

  • none_void

  • paragraphs

  • select_dateds

  • select_localizeds

  • static_url

  • sort_localizeds

  • unique

  • upper_camel_case_to_lower_camel_case

  • url

  • void_none

Next
Globals
Previous
Templating
Copyright © Bart Feenstra and contributors
Made with Sphinx and @pradyunsg's Furo