UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

15 lines (14 loc) 595 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.viewRendor = void 0; var ejs = require('ejs'); function viewRendor(temp_body, loginData) { // Your email template in EJS format var emailTemplate = temp_body; // Render the email template with dynamic data var renderedEmail = ejs.render(emailTemplate, { loginData: loginData }); return renderedEmail; // Now 'renderedEmail' contains the HTML with the user's name and college name // Use 'renderedEmail' as the HTML content when sending your email } exports.viewRendor = viewRendor;