Cerb has several filters you can use to change the case of a given text string:

  • |upper and |lower will change the string to upper and lower case respectively.

  • |capitalize will capitalize the first word in the string.

  • |title will capitalize every word.

  • start:
      set:
        sentence: This is a sentence.
      return:
        upper: {{sentence|upper}}
        lower: {{sentence|lower}}
        capitalized: {{sentence|capitalize}}
        title: {{sentence|title}}
  • __return:
      upper: THIS IS A SENTENCE.
      lower: this is a sentence.
      capitalized: This is a sentence.
      title: This Is A Sentence.