Context variables

Bambu Bootstrap recognises a number of context variables, passed in via a TemplateResponse object. Their names are deliberately kept generic so as not to enforce a drastic change should you want to move away from Bootstrap.

body_classes

A tuple of classes to add to the page’s <body> tag. Can be generated by the body_classes decorator.

title_parts

A tuple that forms the text for a page’s <title> tag. The bootstrap_title template tag separates each part with a beam (|) character, and adds the name of the site to the end.

meta_keywords

Text for the value of a page’s <meta name="keywords"> tag.

meta_description

Text for the value of a page’s <meta name="description"> tag.