@dosgato/templating 0.0.129 → 0.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.d.ts +1 -0
- package/dist/render.d.ts +12 -0
- package/package.json +1 -1
package/dist/component.d.ts
CHANGED
package/dist/render.d.ts
CHANGED
|
@@ -105,6 +105,18 @@ export interface APIClient {
|
|
|
105
105
|
absolute?: boolean;
|
|
106
106
|
extension?: string;
|
|
107
107
|
}) => Promise<string | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* Exactly like resolveLink but also returns the title of the target page, if the target page
|
|
110
|
+
* is internal to the CMS. If the target is a random web page outside the CMS, title will be
|
|
111
|
+
* undefined. Perhaps in the future title could be scraped from the page HTML.
|
|
112
|
+
*/
|
|
113
|
+
resolveLinkAndTitle: (lnk: string | LinkDefinition | undefined, opts?: {
|
|
114
|
+
absolute?: boolean;
|
|
115
|
+
extension?: string;
|
|
116
|
+
}) => Promise<{
|
|
117
|
+
href?: string;
|
|
118
|
+
title?: string;
|
|
119
|
+
}>;
|
|
108
120
|
/**
|
|
109
121
|
* Get a link href for a page
|
|
110
122
|
*
|