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.


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


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.


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


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