Welcome to Carcade's documentation! =================================== Carcade is the static site generator written in Python. The main features are: * Jinja2 templates * Static assets management * Easy localization * And, unlike many other static site generators, Carcade doesn't make any assumptions about the site structure. The main idea ------------- Static site can be considered as a tree with nodes corresponding to the site pages. Suppose each node has the context -- dictionary containing page data -- and consider the following thoughts: * to display the main menu on every page of the site, it's enough to have access to the contexts of the first-level pages of the tree. Something like: :: {% for child in ROOT.CHILDREN %} {{ child.name }} {% endfor %} * to display page containing the list of blog entries, it's enough to have access to the contexts of all child nodes of the `/blog/` page: ::
{{ post.summary }}