--- layout: default permalink: templates/syntax/ title: Syntax --- Syntax ====== While the actual syntax you use in your templates is entirely your choice (it's just PHP after all), we suggest the following syntax guidelines to help keep templates clean and legible. ## Guidelines - Always use HTML with inline PHP. Never use blocks of PHP. - Always escape potentially dangerous variables prior to outputting using the built-in escape functions. More on escaping [here](/templates/escaping/). - Always use the short echo syntax (`=`) when outputting variables. For all other inline PHP code, use full the `layout('template', ['title' => 'User Profile']) ?>
Hello =$this->e($name)?>
You have some friend invites!
~~~