|
OLD
|
NEW go ok
|
It can get confusing because a PAD tag can be so many things,
to solve this, use a prefix that gives the tag type.
|
HTML
|
RESULT
|
<h3>From an pad tag</h3>
{pad:foo}
|
From an pad tag
Foo tag from pad
|
<h3>From an application tag </h3>
{app:foo}
|
From an application tag
Foo tag from app
|
<h3>From the {content} tag </h3>
{content:foo}
|
From the {content} tag
This is from content
|
<h3>From a PHP function !</h3>
{php:foo}
|
From a PHP function !
This is a function
|
<h3>From an own PAD function </h3>
{function:foo}
|
From an own PAD function
From an own function
|
<h3>From an defined bool</h3>
{bool:foo} Bool 'foo' is true @else@ Bool 'foo' is false {/bool:foo}
|
From an defined bool
Bool 'foo' is true
|
<h3>From a PHP array</h3>
{array:foo} {$foo} <br> {/array:foo}
|
From a PHP array
This is a PHP array - 1
This is a PHP array - 2
This is a PHP array - 3
|
<h3>A defined constant</h3>
{constant:foo} {$foo} <br> {/constant:foo}
|
A defined constant
This is a constant - 1
This is a constant - 2
This is a constant - 3
|
<h3>From the {data} tag</h3>
{data:foo} {$foo} <br> {/data:foo}
|
From the {data} tag
This is a json array - 1
This is a json array - 2
This is a json array - 3
|
<h3>From the local _data directory</h3>
{local:foo} {$foo} <br> {/local:foo}
|
From the local _data directory
From the _data directory - 1
From the _data directory - 2
From the _data directory - 3
|
<h3>From the local _scripts directory</h3>
{script:foo}
|
From the local _scripts directory
Hello from foo.py
|
The list with PAD tag types
action app array bool common constant content data field flag function include keep level local make pad php property pull remove script select sequence
Extra files used
|
PHP
|
PAD
|
OTHER
|
|
_functions/foo.php
|
|
|
<?php
return "From an own function";
?>
|
|
|
|
|
_scripts/foo.py
|
|
|
#!/usr/bin/env python3
import sys import os
me = sys.argv[1:]
print ( "Hello from", os.path.basename(__file__) )
|
|
_tags/foo.php
|
|
|
<?php
return "Foo tag from app";
?>
|
|
|
|
|
prefix/_data/foo.xml
|
|
|
<xml> <line foo="From the _data directory - 1" /> <line foo="From the _data directory - 2" /> <line foo="From the _data directory - 3" /> </xml>
|
|
prefix/_lib/foo.pad
|
|
|
{content 'foo'} This is from content {/content}
{data 'foo'} [ { "foo": "This is a json array - 1" }, { "foo": "This is a json array - 2" }, { "foo": "This is a json array - 3" } ] {/data}
{bool 'foo'}1{/bool}
|
|
|
prefix/_lib/foo.php
|
|
|
<?php
function foo () {
return "This is a function";
}
$foo = [ 'This is a PHP array - 1', 'This is a PHP array - 2', 'This is a PHP array - 3' ];
define ( 'foo', [ 'This is a constant - 1', 'This is a constant - 2', 'This is a constant - 3' ] );
?>
|
|
|
|
It can get confusing because a PAD tag can be so many things,
to solve this, use a prefix that gives the tag type.
|
HTML
|
RESULT
|
<h3>From an pad tag</h3>
{pad:foo}
|
From an pad tag
Foo tag from pad
|
<h3>From an application tag </h3>
{app:foo}
|
From an application tag
Foo tag from app
|
<h3>From the {content} tag </h3>
{content:foo}
|
From the {content} tag
This is from content
|
<h3>From a PHP function !</h3>
{php:foo}
|
From a PHP function !
This is a function
|
<h3>From an own PAD function </h3>
{function:foo}
|
From an own PAD function
From an own function
|
<h3>From an defined bool</h3>
{bool:foo} Bool 'foo' is true @else@ Bool 'foo' is false {/bool:foo}
|
From an defined bool
Bool 'foo' is true
|
<h3>From a PHP array</h3>
{array:foo} {$foo} <br> {/array:foo}
|
From a PHP array
This is a PHP array - 1
This is a PHP array - 2
This is a PHP array - 3
|
<h3>A defined constant</h3>
{constant:foo} {$foo} <br> {/constant:foo}
|
A defined constant
This is a constant - 1
This is a constant - 2
This is a constant - 3
|
<h3>From the {data} tag</h3>
{data:foo} {$foo} <br> {/data:foo}
|
From the {data} tag
This is a json array - 1
This is a json array - 2
This is a json array - 3
|
<h3>From the local _data directory</h3>
{local:foo} {$foo} <br> {/local:foo}
|
From the local _data directory
From the _data directory - 1
From the _data directory - 2
From the _data directory - 3
|
<h3>From the local _scripts directory</h3>
{script:foo}
|
From the local _scripts directory
Hello from foo.py
|
The list with PAD tag types
action app array bool common constant content data field flag function include keep level local make pad php property pull remove script select sequence
Extra files used
|
PHP
|
PAD
|
OTHER
|
|
_functions/foo.php
|
|
|
<?php
return "From an own function";
?>
|
|
|
|
|
_scripts/foo.py
|
|
|
#!/usr/bin/env python3
import sys import os
me = sys.argv[1:]
print ( "Hello from", os.path.basename(__file__) )
|
|
_tags/foo.php
|
|
|
<?php
return "Foo tag from app";
?>
|
|
|
|
|
prefix/_data/foo.xml
|
|
|
<xml> <line foo="From the _data directory - 1" /> <line foo="From the _data directory - 2" /> <line foo="From the _data directory - 3" /> </xml>
|
|
prefix/_lib/foo.pad
|
|
|
{content 'foo'} This is from content {/content}
{data 'foo'} [ { "foo": "This is a json array - 1" }, { "foo": "This is a json array - 2" }, { "foo": "This is a json array - 3" } ] {/data}
{bool 'foo'}1{/bool}
|
|
|
prefix/_lib/foo.php
|
|
|
<?php
function foo () {
return "This is a function";
}
$foo = [ 'This is a PHP array - 1', 'This is a PHP array - 2', 'This is a PHP array - 3' ];
define ( 'foo', [ 'This is a constant - 1', 'This is a constant - 2', 'This is a constant - 3' ] );
?>
|
|
|
|
|
Old Source
|
New Source
|
It can get confusing because a PAD tag can be so many things,<br>
to solve this, use a prefix that gives the tag type.
<p>
<table border="1" cellpadding="10" cellspacing="0">
<tr>
<th bgcolor="#dddddd">HTML</th>
<th bgcolor="#dddddd">RESULT</th>
</tr>
<tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From an pad tag</h3><br><br><b>{<font color="blue"><font color="purple">pad</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From an pad tag</h3>
Foo tag from pad<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From an application tag </h3><br><br><b>{<font color="blue"><font color="purple">app</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From an application tag </h3>
Foo tag from app<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From the <b>{<font color="blue">content</font><font color="red"></font>}</b> tag </h3><br><br><b>{<font color="blue"><font color="purple">content</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From the {content} tag </h3>
This is from content<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From a PHP function !</h3><br><br><b>{<font color="blue"><font color="purple">php</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From a PHP function !</h3>
This is a function<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From an own PAD function </h3><br><br><b>{<font color="blue"><font color="purple">function</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From an own PAD function </h3>
From an own function<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From an defined bool</h3><br><br><b>{<font color="blue"><font color="purple">bool</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> Bool 'foo' is true<br><b><font color="black">@</font><font color="purple">else</font><font color="black">@</font></b><br> Bool 'foo' is false<br><b>{/<font color="blue"><font color="purple">bool</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From an defined bool</h3>
Bool 'foo' is true<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From a PHP array</h3><br><br><b>{<font color="blue"><font color="purple">array</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> <b>{<font color="green"><font color="red">$</font>foo</font>}</b> <br><br><b>{/<font color="blue"><font color="purple">array</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From a PHP array</h3>
This is a PHP array - 1 <br>
This is a PHP array - 2 <br>
This is a PHP array - 3 <br><!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>A defined constant</h3><br><br><b>{<font color="blue"><font color="purple">constant</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> <b>{<font color="green"><font color="red">$</font>foo</font>}</b> <br><br><b>{/<font color="blue"><font color="purple">constant</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>A defined constant</h3>
This is a constant - 1 <br>
This is a constant - 2 <br>
This is a constant - 3 <br><!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From the <b>{<font color="blue">data</font><font color="red"></font>}</b> tag</h3><br><br><b>{<font color="blue"><font color="purple">data</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> <b>{<font color="green"><font color="red">$</font>foo</font>}</b> <br><br><b>{/<font color="blue"><font color="purple">data</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From the {data} tag</h3>
This is a json array - 1 <br>
This is a json array - 2 <br>
This is a json array - 3 <br><!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From the local _data directory</h3><br><br><b>{<font color="blue"><font color="purple">local</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> <b>{<font color="green"><font color="red">$</font>foo</font>}</b> <br><br><b>{/<font color="blue"><font color="purple">local</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From the local _data directory</h3>
From the _data directory - 1 <br>
From the _data directory - 2 <br>
From the _data directory - 3 <br><!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From the local _scripts directory</h3><br><br><b>{<font color="blue"><font color="purple">script</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From the local _scripts directory</h3>
Hello from foo.py<!-- END DEMO RESULT --></span></code></td></tr>
</table>
</p>
<hr>
<h3> The list with PAD tag types</h3>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=action.html">action</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=app.html">app</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=array.html">array</a>
|
It can get confusing because a PAD tag can be so many things,<br>
to solve this, use a prefix that gives the tag type.
<p>
<table border="1" cellpadding="10" cellspacing="0">
<tr>
<th bgcolor="#dddddd">HTML</th>
<th bgcolor="#dddddd">RESULT</th>
</tr>
<tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From an pad tag</h3><br><br><b>{<font color="blue"><font color="purple">pad</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From an pad tag</h3>
Foo tag from pad<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From an application tag </h3><br><br><b>{<font color="blue"><font color="purple">app</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From an application tag </h3>
Foo tag from app<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From the <b>{<font color="blue">content</font><font color="red"></font>}</b> tag </h3><br><br><b>{<font color="blue"><font color="purple">content</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From the {content} tag </h3>
This is from content<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From a PHP function !</h3><br><br><b>{<font color="blue"><font color="purple">php</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From a PHP function !</h3>
This is a function<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From an own PAD function </h3><br><br><b>{<font color="blue"><font color="purple">function</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From an own PAD function </h3>
From an own function<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From an defined bool</h3><br><br><b>{<font color="blue"><font color="purple">bool</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> Bool 'foo' is true<br><b><font color="black">@</font><font color="purple">else</font><font color="black">@</font></b><br> Bool 'foo' is false<br><b>{/<font color="blue"><font color="purple">bool</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From an defined bool</h3>
Bool 'foo' is true<!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From a PHP array</h3><br><br><b>{<font color="blue"><font color="purple">array</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> <b>{<font color="green"><font color="red">$</font>foo</font>}</b> <br><br><b>{/<font color="blue"><font color="purple">array</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From a PHP array</h3>
This is a PHP array - 1 <br>
This is a PHP array - 2 <br>
This is a PHP array - 3 <br><!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>A defined constant</h3><br><br><b>{<font color="blue"><font color="purple">constant</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> <b>{<font color="green"><font color="red">$</font>foo</font>}</b> <br><br><b>{/<font color="blue"><font color="purple">constant</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>A defined constant</h3>
This is a constant - 1 <br>
This is a constant - 2 <br>
This is a constant - 3 <br><!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From the <b>{<font color="blue">data</font><font color="red"></font>}</b> tag</h3><br><br><b>{<font color="blue"><font color="purple">data</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> <b>{<font color="green"><font color="red">$</font>foo</font>}</b> <br><br><b>{/<font color="blue"><font color="purple">data</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From the {data} tag</h3>
This is a json array - 1 <br>
This is a json array - 2 <br>
This is a json array - 3 <br><!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From the local _data directory</h3><br><br><b>{<font color="blue"><font color="purple">local</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b><br> <b>{<font color="green"><font color="red">$</font>foo</font>}</b> <br><br><b>{/<font color="blue"><font color="purple">local</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From the local _data directory</h3>
From the _data directory - 1 <br>
From the _data directory - 2 <br>
From the _data directory - 3 <br><!-- END DEMO RESULT --></span></code></td></tr><tr><td style="vertical-align:top"><!-- START DEMO SOURCE --><pre><code style="color: #000000"><h3>From the local _scripts directory</h3><br><br><b>{<font color="blue"><font color="purple">script</font><font color="black"><b>:</b></font>foo</font><font color="red"></font>}</b></code></pre><!-- END DEMO SOURCE --></td><td style="vertical-align:top"><code><span style="color: #000000"><!-- START DEMO RESULT --><h3>From the local _scripts directory</h3>
Hello from foo.py<!-- END DEMO RESULT --></span></code></td></tr>
</table>
</p>
<hr>
<h3> The list with PAD tag types</h3>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=action.html">action</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=app.html">app</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=array.html">array</a>
|
|
bool
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=bool.html">bool</a>
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=common.html">common</a>
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=common.html">common</a>
|
|
constant
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=constant.html">constant</a>
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=content.html">content</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=data.html">data</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=field.html">field</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=flag.html">flag</a>
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=content.html">content</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=data.html">data</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=field.html">field</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=flag.html">flag</a>
|
|
function
|
<a href="../reference/index%EF%B9%96pages&padSesID=DiM2hOlW&padReqID=o3MULund&type=Tag+types&xref=tag%EA%A4%B7function&item=foo.html">function</a>
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=include.html">include</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=keep.html">keep</a>
level
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=local.html">local</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=make.html">make</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=pad.html">pad</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=php.html">php</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=property.html">property</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=pull.html">pull</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=remove.html">remove</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=script.html">script</a>
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=include.html">include</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=keep.html">keep</a>
level
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=local.html">local</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=make.html">make</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=pad.html">pad</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=php.html">php</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=property.html">property</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=pull.html">pull</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=remove.html">remove</a>
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=script.html">script</a>
|
|
select
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=select.html">select</a>
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=sequence.html">sequence</a>
<p>
<h2>Extra files used</h2>
<table border="1" cellpadding="10" cellspacing="0">
<tr>
<th bgcolor="#bbbbbb">PHP</th>
<th bgcolor="#bbbbbb">PAD</th>
<th bgcolor="#bbbbbb">OTHER</th>
</tr>
<tr>
<td bgcolor="#eeeeee">_functions/foo.php</td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
</tr>
<tr>
<td style="vertical-align:top"><pre><code style="color: #000000"><span style="color: #0000BB"><?php<br><br> </span><span style="color: #007700">return </span><span style="color: #DD0000">"From an own function"</span><span style="color: #007700">;<br><br></span><span style="color: #0000BB">?></span></code></pre></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
</tr>
<tr>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee">_scripts/foo.py</td>
</tr>
<tr>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><pre><code style="color: #000000">#!/usr/bin/env python3<br><br>import sys<br>import os<br><br>me = sys.argv[1:]<br><br>print ( "Hello from", os.path.basename(__file__) )<br></code></pre></td>
</tr>
<tr>
<td bgcolor="#eeeeee">_tags/foo.php</td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
</tr>
<tr>
<td style="vertical-align:top"><pre><code style="color: #000000"><span style="color: #0000BB"><?php<br><br> </span><span style="color: #007700">return </span><span style="color: #DD0000">"Foo tag from app"</span><span style="color: #007700">;<br><br></span><span style="color: #0000BB">?></span></code></pre></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
</tr>
<tr>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee">prefix/_data/foo.xml</td>
</tr>
<tr>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><pre><code style="color: #000000"><xml><br> <line foo="From the _data directory - 1" /><br> <line foo="From the _data directory - 2" /><br> <line foo="From the _data directory - 3" /><br></xml></code></pre></td>
</tr>
<tr>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee">prefix/_lib/foo.pad</td>
<td bgcolor="#eeeeee"></td>
</tr>
<tr>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><pre><code style="color: #000000"><b>{<font color="blue">content </font><font color="red"><font color="black">'</font>foo<font color="black">'</font></font>}</b><br> This is from content<br><b>{/<font color="blue">content</font><font color="red"></font>}</b><br><br><b>{<font color="blue">data </font><font color="red"><font color="black">'</font>foo<font color="black">'</font></font>}</b><br> [ { "foo": "This is a json array - 1" },<br> { "foo": "This is a json array - 2" },<br> { "foo": "This is a json array - 3" } ]<br><b>{/<font color="blue">data</font><font color="red"></font>}</b><br><br><b>{<font color="blue">bool </font><font color="red"><font color="black">'</font>foo<font color="black">'</font></font>}</b>1<b>{/<font color="blue">bool</font><font color="red"></font>}</b></code></pre></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
</tr>
<tr>
<td bgcolor="#eeeeee">prefix/_lib/foo.php</td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
</tr>
<tr>
<td style="vertical-align:top"><pre><code style="color: #000000"><span style="color: #0000BB"><?php<br><br> </span><span style="color: #007700">function </span><span style="color: #0000BB">foo </span><span style="color: #007700">() {<br><br> return </span><span style="color: #DD0000">"This is a function"</span><span style="color: #007700">;<br><br> }<br><br> </span><span style="color: #0000BB">$foo </span><span style="color: #007700">= [ </span><span style="color: #DD0000">'This is a PHP array - 1'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'This is a PHP array - 2'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'This is a PHP array - 3'<br> </span><span style="color: #007700">];<br><br> </span><span style="color: #0000BB">define </span><span style="color: #007700">( </span><span style="color: #DD0000">'foo'</span><span style="color: #007700">, [ </span><span style="color: #DD0000">'This is a constant - 1'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'This is a constant - 2'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'This is a constant - 3'<br> </span><span style="color: #007700">] );<br><br></span><span style="color: #0000BB">?></span></code></pre></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
</tr>
</table>
</p>
|
<a href="../reference/index%EF%B9%96dir&xref=tag&type=Tag+types&item=sequence.html">sequence</a>
<p>
<h2>Extra files used</h2>
<table border="1" cellpadding="10" cellspacing="0">
<tr>
<th bgcolor="#bbbbbb">PHP</th>
<th bgcolor="#bbbbbb">PAD</th>
<th bgcolor="#bbbbbb">OTHER</th>
</tr>
<tr>
<td bgcolor="#eeeeee">_functions/foo.php</td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
</tr>
<tr>
<td style="vertical-align:top"><pre><code style="color: #000000"><span style="color: #0000BB"><?php<br><br> </span><span style="color: #007700">return </span><span style="color: #DD0000">"From an own function"</span><span style="color: #007700">;<br><br></span><span style="color: #0000BB">?></span></code></pre></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
</tr>
<tr>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee">_scripts/foo.py</td>
</tr>
<tr>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><pre><code style="color: #000000">#!/usr/bin/env python3<br><br>import sys<br>import os<br><br>me = sys.argv[1:]<br><br>print ( "Hello from", os.path.basename(__file__) )<br></code></pre></td>
</tr>
<tr>
<td bgcolor="#eeeeee">_tags/foo.php</td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
</tr>
<tr>
<td style="vertical-align:top"><pre><code style="color: #000000"><span style="color: #0000BB"><?php<br><br> </span><span style="color: #007700">return </span><span style="color: #DD0000">"Foo tag from app"</span><span style="color: #007700">;<br><br></span><span style="color: #0000BB">?></span></code></pre></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
</tr>
<tr>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee">prefix/_data/foo.xml</td>
</tr>
<tr>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><pre><code style="color: #000000"><xml><br> <line foo="From the _data directory - 1" /><br> <line foo="From the _data directory - 2" /><br> <line foo="From the _data directory - 3" /><br></xml></code></pre></td>
</tr>
<tr>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee">prefix/_lib/foo.pad</td>
<td bgcolor="#eeeeee"></td>
</tr>
<tr>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><pre><code style="color: #000000"><b>{<font color="blue">content </font><font color="red"><font color="black">'</font>foo<font color="black">'</font></font>}</b><br> This is from content<br><b>{/<font color="blue">content</font><font color="red"></font>}</b><br><br><b>{<font color="blue">data </font><font color="red"><font color="black">'</font>foo<font color="black">'</font></font>}</b><br> [ { "foo": "This is a json array - 1" },<br> { "foo": "This is a json array - 2" },<br> { "foo": "This is a json array - 3" } ]<br><b>{/<font color="blue">data</font><font color="red"></font>}</b><br><br><b>{<font color="blue">bool </font><font color="red"><font color="black">'</font>foo<font color="black">'</font></font>}</b>1<b>{/<font color="blue">bool</font><font color="red"></font>}</b></code></pre></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
</tr>
<tr>
<td bgcolor="#eeeeee">prefix/_lib/foo.php</td>
<td bgcolor="#eeeeee"></td>
<td bgcolor="#eeeeee"></td>
</tr>
<tr>
<td style="vertical-align:top"><pre><code style="color: #000000"><span style="color: #0000BB"><?php<br><br> </span><span style="color: #007700">function </span><span style="color: #0000BB">foo </span><span style="color: #007700">() {<br><br> return </span><span style="color: #DD0000">"This is a function"</span><span style="color: #007700">;<br><br> }<br><br> </span><span style="color: #0000BB">$foo </span><span style="color: #007700">= [ </span><span style="color: #DD0000">'This is a PHP array - 1'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'This is a PHP array - 2'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'This is a PHP array - 3'<br> </span><span style="color: #007700">];<br><br> </span><span style="color: #0000BB">define </span><span style="color: #007700">( </span><span style="color: #DD0000">'foo'</span><span style="color: #007700">, [ </span><span style="color: #DD0000">'This is a constant - 1'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'This is a constant - 2'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'This is a constant - 3'<br> </span><span style="color: #007700">] );<br><br></span><span style="color: #0000BB">?></span></code></pre></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
<td style="vertical-align:top"><code style="color: #000000"></code></td>
</tr>
</table>
</p>
|