|
HTML
|
RESULT
|
{content 'myContent'} This is my content.<br> {/content}
|
|
{myContent}
|
This is my content.
|
{myContent} This is the base content. <br> {/myContent}
|
This is my content.
This is the base content.
|
{myContent merge='replace'} This is the base content. <br> {/myContent}
|
This is my content.
|
{myContent merge='top'} This is the base content. <br> {/myContent}
|
This is my content.
This is the base content.
|
{myContent merge='bottom'} This is the base content. <br> {/myContent}
|
This is the base content.
This is my content.
|
|
HTML
|
RESULT
|
{content 'myContent'} This is the true content. <br> @else@ This is the false content. <br> {/content}
|
|
{true content='myContent', merge='replace'} This is the true base content <br> @else@ This is the false base content <br> {/true}
|
This is the true content.
|
{true content='myContent', merge='top'} This is the true base content <br> @else@ This is the false base content <br> {/true}
|
This is the true content.
This is the true base content
|
{true content='myContent', merge='bottom'} This is the true base content <br> @else@ This is the false base content <br> {/true}
|
This is the true base content
This is the true content.
|
{false content='myContent', merge='replace'} This is the true base content <br> @else@ This is the false base content <br> {/false}
|
This is the false content.
|
{false content='myContent', merge='top'} This is the true base content <br> @else@ This is the false base content <br> {/false}
|
This is the false content.
This is the false base content
|
{false content='myContent', merge='bottom'} This is the true base content <br> @else@ This is the false base content <br> {/false}
|
This is the false base content
This is the false content.
|
|
PHP
|
HTML
|
RESULT
|
<?php
function myFunction () {
return 'This is the tag content <br>';
}
?>
|
{content 'myContent'} This is content from the {content} tag <br> {/content}
|
|
{myFunction content='myContent', merge='replace'} This is the base content <br> {/myFunction}
|
This is content from the {content} tag
|
{myFunction content='myContent', merge='top'} This is the base content <br> {/myFunction}
|
This is content from the {content} tag
This is the tag content
This is the base content
|
{myFunction content='myContent', merge='bottom'} This is the base content <br> {/myFunction}
|
This is the base content
This is the tag content
This is content from the {content} tag
|