Maple Engine

Last Updated: 2023-11-04 06:02:43
Blocks and transfers are a way to move/transfer content to specific locations in an HTML document.  It's important to understand what layouts are because that's where block statements are commonly defined.  If needed, read the documentation on layouts to refresh.
    
Fliddo provides a couple layouts for your website and those layouts contains blocks such as header, css, jsready and ajaxready.  These blocks are not concrete and can be removed or redefined as needed, however, any change in block names means all transfer statements referencing them must also be updated.  It's a good idea to leave them as is because they can be used in every situation.
A block can be thought of as a placeholder for content and is usually within layout templates.  All blocks have a name associated with it.  Multiple blocks can have the same name but it's best practice to keep these names unique to avoid complication.
    
A block is defined as { block [ NAME ] } where NAME is an alphanumeric string and can also contain underscores.  To create a block within your layout template is written as follows.
{ block header }
A transfer contains content which is assign a block name.  When a template is processed the code within a transfer statement is appended to that blocks location.
    
A transfer is defined as { transfer [ NAME ] } ... { transfer } where NAME is an alphanumeric string and can also contain underscores.  To create a transfer within your template or partial is written as follows.

{ transfer header }
<script src="{ Assets }/js/jtml.js"></script>
{ transfer }
Was this page helpful?