Next topic

This Page

Quick search

{#breakpoint} is a debugging tool that tells the parser to stop
parsing at a specific point. All source code from that point on
will be ignored.

The difference between {#breakpoint} and {#stop} is that {#stop}
occurs in normal templates (e.g., inside an {#if}) but
{#breakpoint} is used only when debugging Cheetah. Another
difference is that {#breakpoint} operates at compile time, while
{#stop} is executed at run time while filling the template.

The {#compiler-settings} directive overrides Cheetah’s standard
settings, changing how it parses source code and generates Python
code. This makes it possible to change the behaviour of Cheetah’s
parser/compiler for a certain template, or within a portion of the
template.

The {reset} argument reverts to the default settings. With {reset},
there’s no end tag.