Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/next_php/src/deps.ts>ejs.renderFile

NextPHP is a web framework enabling you to write PHP in JavaScript.
Latest
function ejs.renderFile
import { ejs } from "https://deno.land/x/next_php@1.1.2/src/deps.ts";
const { renderFile } = ejs;

Render an EJS file at the given path and callback cb(err, str).

If you would like to include options but not data, you need to explicitly call this function with data being an empty object or null.

Parameters

path: string
optional
data: Data
optional
opts: Options

Returns

Promise<string>