Amiro.CMS API Reference
Amiro.Ru / Manual
Loading search...

AMI_Template usage example template

  • ##-- file: "AMI_Template.tpl" --##
  •  
  • <!--#set var="body" value="
  • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  • <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  • <head>
  • <title>Template - AMI_Template - Example - Amiro.CMS API Reference [beta]</title>
  • </head>
  • <body>##body##</body>
  • </html>
  • "-->
  •  
  • <!--#set var="content" value="
  • <div style="border: 1px solid #000; background: #dfd; padding: 5px; margin-bottom: 5px;">
  •  
  • &laquo;content&raquo; set:
  •  
  • <ul>
  •     <li>variable1 is [##variable1##]</li>
  •     <li>variable2 is [##variable2##]</li>
  •     <li>variable3 is [##variable3##]</li>
  • </ul>
  •  
  • ##if(variable3)##
  • <p>This text will always be shown by AMI_Template because there is no conditions support.</p>
  • ##endif##
  •  
  • Locale variable value##locale_loaded## - [%%variable%%].
  •  
  • </div>
  • "-->