--- 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 (`layout('template', ['title' => 'User Profile']) ?>

Welcome!

Hello e($name)?>

Friends

Invitations

You have some friend invites!

~~~