Skip to content

Document rendering service supporting multiple external data sources

Notifications You must be signed in to change notification settings

Project-Prismatica/prismatica_report_renderer

Repository files navigation

Docker Repository on Quay

Report Renderer

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.

Example Usage

Basic Example

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

Variable Example

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

As a service

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.

XML Features

More documentation (here)[./blob/master/doc/xml.md]

MongoDB Queries

More documentation (here)[./blob/master/doc/mongo.md]

About

Document rendering service supporting multiple external data sources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published