TinyButStrong - the PHP Template Engine

Example of Block Syntaxes

this TBS template is W3C compliant Valid XHTML 1.1

These examples illustrate the different available syntaxes for Merge-Blocks.

Absolute Syntax

The block is defined by a beginning TBS tag and an ending TBS tag.

France
England
Spain
Italy
Germany

Relative Syntax

The block is defined relatively to the HTML (or XML) tags that surround the TBS tag. Only a single TBS tag defines the block, instead of a couple of TBS tags.

France
England
Spain
Italy
Germany

Simplified Syntax

The bloc definition is included inside a TBS field. It's much more simple to write.

France
England
Spain
Italy
Germany

On a text line

Use the symbol "_" to define a block on a simple text line, independently of HTML tags.

  France
  England
  Spain
  Italy
  Germany

With concatenation

It's possible to define a block on several following HTML tags. For this, you just have to indicate the tags to concatenate by separating them with "+". In the example below, the block is bounded by two rows.

  France
France
  England
England
  Spain
Spain
  Italy
Italy
  Germany
Germany

With encapsulation

It's possible to define a block on an HTML tag of a higher level. For this, you just have to set the encapsulation level using parentheses. In the example below, the block is bounded by the pink row.

France
England
Spain
Italy
Germany

Without Block Definition

If the block definition is omitted, then only the first record is merged.

Example: France