New API for BriefTemplate
Issue #4
resolved
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)
-
reporter -
reporter - changed status to resolved
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.
- Log in to comment
Issue
#2was marked as a duplicate of this issue.