UNPKG

@perfood/couch-auth

Version:

Easy and secure authentication for CouchDB/Cloudant. Based on SuperLogin, updated and rewritten in Typescript.

25 lines (24 loc) 957 B
/** * @internal * Combines a base html template and the content, returning both a html and * plain text version of the email * * @param folderPath template directory * @param template plain text template whose paragraphs will be formatted into the base template. `.njk` gets appended. * @param data data that should be passed to the template. * @param base the base template. Default: `base.njk` * @returns */ export declare function parseCompositeTemplate(folderPath: string, template: string, data?: Record<string, any>, base?: string): { html: any; text: any; }; /** * Fallback method: If the `${template}.njk` is not present, this will be called * to directly render the html (`${template}.html.njk`) and plain text * (`${template}.text.njk`) templates without additional logic. */ export declare function parseTemplatesDirectly(folderPath: string, template: string, data?: Record<string, any>): { html: any; text: any; };