Back to Pocketbase

Namespace $template

static/jsvm/modules/_template.html

latest804 B
Original Source

Namespace $template

$template is a global helper to load and cache HTML templates on the fly.

The templates uses the standard Go html/template and text/template package syntax.

Example:

const html = $template.loadFiles( "views/layout.html", "views/content.html",).render({"name": "John"})Copy

Index

Functions

addFuncsloadFSloadFilesloadString

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc