Jinja2 Documentation Release 2.10
possible initialization parameters: block_start_string The string marking the beginning of a block. De- faults to '{%'. block_end_string The string marking the end of a block. Defaults to '%}'. variable_start_string newline after a block is re- moved (block, not variable tag!). Defaults to False. lstrip_blocks If this is set to True leading spaces and tabs are stripped from the start of a line to a block. Defaults to environment. cache_size The size of the cache. Per default this is 400 which means that if more than 400 templates are loaded the loader will clean out the least recently used template. If the cache size is0 码力 | 148 页 | 475.08 KB | 1 年前3Django CMS 3.11.10 Documentation
page_attribute "page_title" %} extracts the page’s page_title attribute. {% render_block "css" %} and {% render_block "js" %} are Sekizai template tags that load blocks of HTML defined by Django applications JavaScript, and requires these two tags. We recommended placing {% render_block "css" %} just before the tag, and and {% render_block "js" %} tag just before the