UNPKG

alapa

Version:

A cutting-edge web development framework designed to revolutionize the way developers build modern web applications.

15 lines (14 loc) 451 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.alapaEngine = alapaEngine; const main_1 = require("./extension/render/main"); // Assuming this function exists function alapaEngine(view, options, callback) { try { const context = { ...options }; const result = (0, main_1.renderFile)(view, context); callback(null, result); } catch (error) { callback(error, ""); } }