Class CurlyBracketsMacros (namespace Nette\Templates)


Default macros for filter LatteFilter.

  • {$variable} with escaping
  • {!$variable} without escaping
  • {*comment*} will be removed
  • {=expression} echo with escaping
  • {!=expression} echo without escaping
  • {?expression} evaluate PHP statement
  • {_expression} echo translation with escaping
  • {!_expression} echo translation without escaping
  • {link destination ...} control link
  • {plink destination ...} presenter link
  • {if ?} ... {elseif ?} ... {else} ... {/if}
  • {ifset ?} ... {elseifset ?} ... {/if}
  • {for ?} ... {/for}
  • {foreach ?} ... {/foreach}
  • {include ?}
  • {cache ?} ... {/cache} cached block
  • {snippet ?} ... {/snippet ?} control snippet
  • {attr ?} HTML element attributes
  • {block|texy} ... {/block} block
  • {contentType ...} HTTP Content-Type header
  • {status ...} HTTP status
  • {capture ?} ... {/capture} capture block to parameter
  • {assign var => value} set template parameter
  • {default var => value} set default template parameter
  • {dump $var}
  • {debugbreak}

Object
   |
   --LatteMacros
      |
      --CurlyBracketsMacros
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Templates/Filters/LatteFilter.php (line 571)
Methods Inherited From LatteMacros
__construct(), attrsMacro(), callBlock(), callBlockParent(), finalize(), includeTemplate(), initialize(), initRuntime(), macro(), tagMacro()
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary