Report Renderer is a gRPC service which will render reports given templates of the reports and a configuration for remote data sources. It builds on pongo2 with a few new functions for accessing data used by the Project Prismatica ecosystem. Markdown support is provided by blackfriday through the pongo2-addons package.
Template stored in examples/basic.tpl
This is a basic template. The answer is {{ 41 | add:1 }}
Rendering:
$ prismatica_report_renderer render -s examples/basic.tpl
This is a basic template. The answer is 42
Template stored in examples/var.tpl
The variable provided was {{ asdf }}
Rendering:
$ prismatica_report_renderer render -s examples/var.tpl asdf=Something
The variable provided was Something
While local rendering is useful for debugging, the power of the project is to
run this as a gRPC-exposed service as described in
/prismatica_report_renderer.proto
to allow clients to leverage data stored
in back-end mongo databases.
Prismatica Infrastructure is the recommended method for running this as a service.
More documentation (here)[./blob/master/doc/xml.md]
More documentation (here)[./blob/master/doc/mongo.md]