Reference

Guide

new Template()

Creates a new template object

new Template(string $name, string $type = 'html', string $defaultType = 'html')

Parameters

Name Type Default Description
$name string
$type string 'html'
$defaultType string 'html'

Source code

kirby/src/Cms/Template.php#L56