kacy-c
10/4/2018 - 8:37 PM

Tags - OctoberCMS

The {% set %} tag can be used to set variables inside the template.

==
function onStart()
{
    $this['hello'] = "Hello world!";
}
==
<h3>{{ hello }}</h3>