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

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

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

Compile the given str of ejs into a template function.

Parameters

template: string
opts: Options & { async: true; client?: false | undefined; }

Parameters

template: string
opts: Options & { async: true; client: true; }

Parameters

template: string
optional
opts: Options & { async?: false | undefined; client?: false | undefined; }

Parameters

template: string
optional
opts: Options & { async?: false | undefined; client: true; }