-
Notifications
You must be signed in to change notification settings - Fork 1
Templates
Ahmed Abbas edited this page Jul 13, 2025
·
7 revisions
The native Content Template element is required for displaying the dynamically loaded content.
- Token: A deeply nested property at the JSON response of OGGEH API.
-
Placeholder: A special marker for displaying the above token inside double-curly braces. Example:
{{ subject }}
- All templates accept placeholder tokens inside double-curly braces. Example:
{{ subject }} - Nested properties can be chained using dot
.Example:{{ conver.regular.url }}
| Modifier | Description | Example |
|---|---|---|
is |
Decides to display token value if it exists or is empty | {{ fax | is(fax) }} |
fallback |
Decides to display an alternative value if the token does not exist or is empty | {{ cover.maximum.url | fallback('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==') }} |
join |
Concatenates token list using the provided separator | {{ tags | join(', ') }} |
trim |
Truncate long text after a specified number of words | {{ subject | trim(10) }} |
formatDate |
Displays unix timestamp in the following format MMM DD, YYYY
|
{{ timestamp | formatDate }} |
formatTime |
Displays unix timestamp in the following format HH:MM:SS AM/PM
|
{{ timestamp | formatTime }} |
Copyrights © 2012-2025 All Rights Reserved by OGGEH, Inc.