Skip to main content
Module

x/saur/view/template.js

a rapid web development framework for deno
Latest
import * as saur from "https://deno.land/x/saur@v0.0.1/view/template.js";

Classes

Template reads and compiles a template to render the response for a View, using the View as context. Templates have a conventional filename, ${path_to_template}.${response_format}.${templating_language}. A "users/show" page for HTML would therefore have a template of users/show.html.ejs, while the same route for XML would use the users/show.xml.ejs template.