Template directive: Attr

The @attr: is used to copy the section of a template to another section of that same template file. This directive works in pairs. While the <x-attr:/> directive is used to store the text, the @attr: is used to return back the specific data stored. This directive should not be used to store extremely long strings as it is only meant for use in situation where there are similary recurring text files. Once a data has been successfully stored, it can then be imported back to any section of that current template file. The example below shows how to apply this directive.
attr()
lay.rex.php
  <x-attr:book This is a book /> // stores 'This is a book' 

  @attr:book // "This is a book" string will be returned
                
Resolved as
  This is a book