rfc:shortags

This is an old revision of the document!


Request for Comments: Improved short tags for templating

  • Version: 1.0
  • Date: 2008-04-03
  • Author: Stas Malyshev stas@php.net
  • Status: Under Discussion

Rationale

Many template systems use PHP as its underlying language, so that the templates could be parsed and run by the efficient PHP engine, edited by PHP tools, benefit from PHP performance solutions, etc. PHP template can be written in two ways, with full tags:

This is a home page for <i><?php echo $user; ?></i>. 
Last visited at <?php echo $lastvisit; ?>. 

or short tags:

This is a home page for <i><?= $user ?></i>. 
Last visited at <?= $lastvisit ?>. 

Runtime short tags

Always available template tags

rfc/shortags.1207255375.txt.gz · Last modified: 2017/09/22 13:28 (external edit)