@kosatyi/ejs 0.0.107 → 0.0.108

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.
@@ -0,0 +1,31 @@
1
+ export {
2
+ create,
3
+ render,
4
+ createContext,
5
+ configure,
6
+ helpers,
7
+ preload,
8
+ } from './ejs'
9
+
10
+ export { TemplateError, TemplateSyntaxError, TemplateNotFound } from './error'
11
+
12
+ export type HonoContext = {}
13
+
14
+ export type RendererParams = {
15
+ templates?: { [p: string]: Function }
16
+ version?: number | string
17
+ secure?: boolean | string
18
+ [key: string]: any
19
+ }
20
+
21
+ export function setRenderer(
22
+ options: RendererParams,
23
+ ): (c: HonoContext) => Promise<HonoContext>
24
+
25
+ export function setTemplates(templates?: { [x: string]: any }): void
26
+
27
+ export function useRenderer(
28
+ options: RendererParams,
29
+ ): (c: HonoContext) => Promise<HonoContext>
30
+
31
+ export function useTemplates(templates?: { [x: string]: any }): void