Reference - Parms functions - exclaim


App: regression/framework - Page: custom/a_custom_function_in_a_chain
PHP
HTML
custom/a_custom_function_in_a_chain.pad
Result
{echo 'a' | exclaim | upper}


App: regression/framework - Page: custom/a_pipe_function_from_functions
PHP
HTML
custom/a_pipe_function_from_functions.pad
Result
{echo 'a' | exclaim}


App: regression/framework - Page: expressions/a_function_the_application_supplies
PHP
HTML
expressions/a_function_the_application_supplies.pad
Result
{echo 'ab' | exclaim}


App: regression/framework - Page: expressions/an_application_function_written_as_a_call_reads_its_first_argument
PHP
HTML
expressions/an_application_function_written_as_a_call_reads_its_first_argument.pad
Result
[{echo exclaim('ab')}][{echo 'cd' | exclaim}][{echo upper(exclaim('ef'))}][{echo function:exclaim('gh')}][{echo function:upper('ij')}][{echo 'kl' | exclaim()}]


App: regression/framework - Page: functions/the_space_form_pipes_through_an_application_or_a_php_function
PHP
HTML
functions/the_space_form_pipes_through_an_application_or_a_php_function.pad
Result
[{echo 'abc' exclaim}][{echo 'abc' strrev}]


App: regression/framework - Page: lenient/an_app_prefix_naming_no_function_is_empty
PHP
lenient/an_app_prefix_naming_no_function_is_empty.php
HTML
lenient/an_app_prefix_naming_no_function_is_empty.pad
Result
<?php

// The lenient walk under test: what cannot be computed is empty.

$padCheckSyntax = FALSE;

?>
[{echo 'x' | app:nosuchfunction}][{echo 'ab' | app:exclaim}]


App: regression/framework - Page: tags/a_function_the_application_supplies
PHP
HTML
tags/a_function_the_application_supplies.pad
Result
{exclaim}ab{/exclaim}


App: regression/pages - Page: request/tagnames
PHP
request/tagnames.php
HTML
request/tagnames.pad
Result
<?php

// Fixture for a_request_value_never_decides_what_a_tag_is: a constant, pipe functions, two
// sequences, a _data file, an application pipe function and PHP functions written as tags
// and pipes - and $ucwords, a variable the page sets itself, which stays the field it is, as
// $date does, given a default that keeps the request's value when one came. Fetched bare it
// answers what the template means by each name.

$ucwords = 'mine';
$who = $who ?? 'nobody';
$date = $date ?? '2000-01-01';

// A name in a comment, a string or a function's parameter is none of the page's: $upper
// here, '$fibonacci' and $nums below stay the template's, and so does the closure's local
// $exclaim behind a binary string.

$tagNamesText = 'the $fibonacci sequence';
$tagNamesBinary = b"a binary string for $who";
$tagNamesLocal = function ( $nums ) { $exclaim = 1; return $nums; };

?>
[{PHP_INT_SIZE}][{upper}abc{/upper}][{fibonacci rows=3}{$fibonacci}{/fibonacci}][{prime rows=3}{$prime}{/prime}][{nums}{$nums}{/nums}][{exclaim}hi{/exclaim}][{echo 'abc' | strrev}][{strtoupper 'x'}][{ucwords}][{who}][{date}]