Reference

Guide

$kirby->template()

Uses the template component to initialize and return the Template object

$kirby->template(string $name, string $type = 'html', string $defaultType = 'html'): Kirby\Cms\Template

Parameters

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

Return type

Kirby\Cms\Template

Source code

kirby/src/Cms/App.php#L1212