New API for BriefTemplate

Issue #4 resolved
Michael P. Jung created an issue

BriefTemplate should offer a simpler API that is not limited because it subclasses platypus.BaseDocTemplate.

template = BriefTemplate()
template.render(document, fh)

A nice addition would be the ability to render more than one document into one PDF file:

template = BriefTemplate()
template.render([document1, document2], fh)

This should be done before 1.0 is released as I want to have a stable API then.

Comments (2)

  1. Michael P. Jung reporter

    Commit 0211895 removes dinbrief.constants in favor of the new API. Now it is possible to override the constants in BriefTemplate without having to duplicate any code.

  2. Log in to comment