Template variables start with a $dollar sign. They can contain numbers, letters and underscores, much like a PHP variable. You can reference arrays that are indexed numerically or non-numerically. You can also reference object properties and methods. Config file variables are an exception to the dollar sign syntax. They can be referenced with surrounding #hashmarks#, or with the special $smarty.config variable.
See also $smarty reserved variables and Config Variables.