Rendering
info
Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.
The Rendering component of the UNTP extensions focuses on how credential data is visually presented. It utilises a Render Template, which is crucial in ensuring consistent and flexible presentation of product information across different systems and applications. To support uptake across supply chain actors with varying levels of technical maturity, human rendering of digital credentials is essential.
Render Template Structure
The Render Template is defined within the credential's renderMethod property. It includes the following key elements:
name: An optional identifier for the templatetemplate: The HTML structure with placeholders for dynamic content@type: The type of rendering template (e.g., "RenderTemplate2024")mediaType: The MIME type of the rendered output (typically "text/html")mediaQuery: Optional CSS media queries for responsive designdigestMultibase: A hash of the template for integrity verification