> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/using-nats/one-off-articles/smarty.md).

# Smarty

*Article Topics:* [*Smarty*](/getting-started/common-topics/smarty.md)

Smarty is a templating engine used by several Too Much Media products.

## PHP Parsing

The Smarty templates in NATS are not parsed by PHP for security reasons. In NATS, you can enable [linkcodes ](/using-nats/nats-admin-features/linkcodes.md)by changing links from,

```
?<?=(!empty($_REQUEST['nats']) && !preg_match('/[\'\"<>()\\\+\[\]]/', $_REQUEST['nats']))?'&nats='.$_REQUEST['nats']:''?>
```

to,

```
?nats={$nats_code}
```

In NATS, you can use the [nats\_encode](https://tmmwiki.com/index.php/Nats_encode) or [nats\_list\_linkcodes](https://tmmwiki.com/index.php/Nats_list_linkcodes) functions.

## Inline JavaScript & CSS

Place inline JavaScript or CSS between Smarty's *{literal}* and *{/literal}* tags.

## Smart Print Array

To list array values in smarty templates:

{$var|@debug\_print\_var}&#x20;

This will print out the values of Smarty array $var, similar to using print\_r in php.

## See Also

* [Smarty Homepage](http://smarty.net/) - The Smarty homepage and function reference
