Skip to content

Commit

Permalink
chore: improve handle bar template description
Browse files Browse the repository at this point in the history
  • Loading branch information
phanshiyu committed May 9, 2024
1 parent b1b3044 commit 9582f65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/4.0/documentBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,13 @@ export class DocumentBuilder<Props extends DocumentProps | DocumentProps[]> {
return this.REVOCATION_METHODS;
};

/** Render via an SVG template, embedded or remote */
/**
* Render via an SVG handlebar template, embedded or remote
* the root object of the handlebar template should be the content of the document
* that is the "credentialSubject" of the final OpenAttestation document
* for example, if the content of the document is { name: "John Doe" }
* the handlebar template should refer to the name as {{name}}
*/
public svgRenderer = (
props:
| {
Expand Down

0 comments on commit 9582f65

Please sign in to comment.