+ Handlers convert content into something that can be rendered onto a cairo
+ def layout(self, theme):
+ Takes a theme, and returns a list of tuples, with each tuple
+ corresponding to a slide. Each tuple is composed of a string, which is
+ the name of the template to be used for that slide, and a dictionary
+ mapping a named block to a function which takes a cairo context and
+ renders the handlers content onto the context.
+ :param theme: a theme object
+ :rtype: a list of tuples of a template and a dictionary mapping blocks
the handler can use are not given. Handlers should specify what templates can be
used as a list of strings in ``Handler.templates``.
+.. automodule:: shinypress.handler