Answers.Body: <p>Going forward, much of the Civi UI will be written in Angular. However at least 95% of the application uses Smarty and it's still a perfectly acceptable way to mark up a form or page.</p>
  
  <p>Depending on your use case you may be able to create an Angular page for what you want.</p>
  
  <p>If you are writing an extension, you can try both. Use <code>civix generate:page</code> or <code>civix generate:form</code> to create traditional smarty-based pages &amp; forms. Or try the newer <code>civix generate:angular-*</code> commands for the alternatives.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-11T21:42:17.860Z
Answers.LastActivityDate: 2017-01-11T21:42:17.860Z
Answers.UserDisplayName: Coleman
Body: <p>I am trying to be a more conforming civicrm coder. </p>
  
  <p><a href="http://www.smarty.net" rel="nofollow noreferrer">Smarty</a> used by civicrm for pages (and forms?) </p>
  
  <p>I have never used Smarty.. Is it going to be part of civicrm going forward? And are there any tips for writing good future proof smarty? </p>
  
Tags: <php><smarty><coding-standards>
Title: Smarty and future proof code
ThreadText: # Smarty and future proof code
  
  (Asked by: username_0 on 2017-01-11)
  
  I am trying to be a more conforming civicrm coder.
  
  [Smarty](http://www.smarty.net) used by civicrm for pages (and forms?)
  
  I have never used Smarty.. Is it going to be part of civicrm going forward? And are there any tips for writing good future proof smarty?
  
  **Tags:** php, smarty, coding-standards
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-01-11. Score: 3 | Accepted answer
  
  Going forward, much of the Civi UI will be written in Angular. However at least 95% of the application uses Smarty and it's still a perfectly acceptable way to mark up a form or page.
  
  Depending on your use case you may be able to create an Angular page for what you want.
  
  If you are writing an extension, you can try both. Use `civix generate:page` or `civix generate:form` to create traditional smarty-based pages & forms. Or try the newer `civix generate:angular-*` commands for the alternatives.
  
  
  ---
  
  