Skip to content

HTML renderMethod display template for generating PDFs #32

@jchartrand

Description

@jchartrand

The admin-dashboard should have a page or field(s) for specifying an html template to use with the renderMethod.

If an html template is specified then generated credentials should include the renderMethod property in the VC.

Some options:

  1. The renderMethod could point at a URL from which to get the template.
  2. The template could be directly provided in the renderMethod

Questions:

  1. Should the html template be hosted by the admin-dashboard? That could make it convenient for projects to add new templates, but then there would have to be some guarantee that the dashboard continued running for the expected lifetime of the credentials.

  2. Even if the dashboard provided template hosting, some projects would likely want to host the templates somewhere else (more durable) and so the admin-dashboard would have to have a field in the renderMethod screen for supplying the external URL

  3. If the html template should be entirely provided in the renderMethod then maybe it shouldn't be a template but rather a fully populated html snippet?

  4. Where should the code live for adding the renderMethod property to the VC? In the dashboard code? Or somewhere else since some projects won't use the dashboard, but might well want to use the renderMethod.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Admin Dashboard Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions