Smarty
From TMM Wiki
Jump to navigationJump to searchNATS 3
|
---|
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 NATS3, you can enable linkcodes by changing links from,
?<?=$_SERVER['QUERY_STRING']?>
to,
?nats={$nats_code}
In NATS4, you can use the nats_encode or nats_list_linkcodes functions.
Inline JavaScript & CSS
Place inline JavaScript or CSS between Smarty's {literal} and {/literal} tags.
See Also
- Smarty Homepage -- The Smarty homepage and function reference