Reference - @xxx@ constructs - content


App: manual - Page: constructs/else_3


App: manual - Page: content/1


App: manual - Page: content/2


App: manual - Page: content/3


App: manual - Page: content/4


App: manual - Page: content/5


App: manual - Page: content/6


App: manual - Page: content/7


App: manual - Page: fragments/components_3
PHP
HTML
fragments/components_3.pad
Result
{define 'pill'}
{parms label, tone='info'}
<span class="pill {#tone}">{#label}@content@</span>
{/define}

{pill label='New'}
{pill label='Sold out', tone='warn'}: 0 left{/pill}


App: manual - Page: fragments/content_2
PHP
HTML
fragments/content_2.pad
Result
{content 'box'}[ @content@ ]{/content}

<p>{box}one{/box}</p>
<p>{box}two{/box}</p>


App: manual - Page: miscellaneous/pad


App: manual - Page: pages/examples_used_in_this_manual
PHP
HTML
pages/examples_used_in_this_manual.pad
Result
{block}
<p>This manual will use the {tag 'pad'} tag for general PAD features.
<p>Below the internal PHP code for the {tag 'pad'} tag. That is not so much ))</p>
<p>{example 'miscellaneous/true', skipHeader, skipPad, skipResult}</p>
<p>As the {tag 'pad'} tag does not do anything itself, it must be given content & data.
<br>(if there is no data assigned to it then it will have default 1 data occurence)
{/block}

{page 'miscellaneous/pad'}

{page 'staff/index'}


App: manual - Page: pages/start_end


App: manual - Page: pages/the_content_tag
PHP
HTML
pages/the_content_tag.pad
Result
{block}
With the <b>{content}</b> tag it is possible to define content for later use.
{/block}

{page 'content/1'}

<hr><h4>Open or close tag</h4>

{block}
<p>If <b>{content 'xxx'}</b> is used, then the content will not be processed before it is stored in the content store</p>
<p>If <b>{/content 'xxx'}</b> is used, then the content will be processed before it is stored in the content store</p>
{/block}

{page 'content/2'}

<hr><h4>Merge content with content - part 1</h4>

{page 'content/4'}

<hr><h4>Merge content with content - part 2</h4>

{page 'content/3'}

<hr><h4>Merge content with content - part 3</h4>

{page 'content/5'}

<hr><h4>Merge content with content - part 4</h4>

{page 'content/6'}

<hr><h4>Merge content with content - part 5</h4>

{page 'content/7'}


App: manual - Page: prefix/prefix