b'\n_START_ARTICLE_\nSmarty\n_START_PARAGRAPH_\nSmarty ir PHP t\xc4\xabmek\xc4\xbca \xc5\xa1ablonu sist\xc4\x93ma, kas \xc4\xbcauj atdal\xc4\xabt PHP, k\xc4\x81 biznesa lo\xc4\xa3iku, no HTML, k\xc4\x81 prezent\xc4\x81cijas lo\xc4\xa3ikas, un uz\xc4\xa3ener\xc4\x93 t\xc4\xabmek\xc4\xbca lappuses kodu, aizvietojot Smarty tagus ar saturu.\n_START_SECTION_\nKoda piem\xc4\x93rs\n_START_PARAGRAPH_\nT\xc4\x81 k\xc4\x81 Smarty atdala PHP no HTML, nepiecie\xc5\xa1ami divi faili._NEWLINE_Pirmais ir Smarty \xc5\xa1ablona fails:_NEWLINE_<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head>_NEWLINE_   <meta http-equiv="content-type" content="text/html; charset=utf-8" />_NEWLINE_   <title>{$virsraksts}</title></head><body> {* \xc5\xa0is ir koment\xc4\x81rs, kas nepar\xc4\x81d\xc4\xabsies HTML kod\xc4\x81 *}<p>{$kermenis}</p></body><!-- \xc5\xa0is ir koment\xc4\x81rs, kas par\xc4\x81d\xc4\xabsies HTML kod\xc4\x81 --></html>_NEWLINE_Otrais ir PHP koda fails:_NEWLINE_define(\'SMARTY_DIR\', \'smarty-2.6.9/\' );require_once(SMARTY_DIR . \'Smarty.class.php\');$smarty = new Smarty;$smarty->config_dir = SMARTY_DIR;$smarty->template_dir = \'./tmpl\';$smarty->compile_dir = \'./tmpl/compile\';$smarty->compile_check = TRUE;$smarty->debugging = FALSE;$smarty->assign(\'virsraksts\', \'\xc5\xa0is ir virsraksts.\');$smarty->assign(\'kermenis\', \'\xc5\xa0is ir \xc4\xb7ermenis.\');$smarty->display(\'index.tpl\');'