mpfserver Manual
mpfserver
Token structure
Variables
Directives
mpf:eval
mpf:exec
mpf:function
mpf:ignore
mpf:loop
Examples
mpf:noparse
mpf:switch
mpf:redirect
mpf:toggle
Date/String operations
File operations
XML operations
Database/Communication
Use Cases
Software Licence
Search...
mpfserver
/
Directives
mpf:loop | cloning/repeating data
mpf:loop
clone strings and return them repeatedly, defined by number of loops (list of repeated items)
id of actual position in loop may be accessed using temporary variable "mpf:loop/key"
Examples
{
mpf:
loop
}
=
[mynumber]
numeric value for number of loops. must be integer value
||
data=[mydata]
data to be repeated (required if used as single token)
||
convert=[lowercase|uppercase|upperfirst]
convert number of loops
||
encode=[url|html|html-chars|crypt]
encode number of loops to another format
||
trim=[left|right|both]
remove whitespaces from number of loops
||
convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
||
parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
||
encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
||
trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
||
[opr][condition]
condition may be used to check number of loops
{
mpf:
loop
}
... {
/
mpf:
loop
}
=
[mynumber]
numeric value for number of loops. must be integer value
||
convert=[lowercase|uppercase|upperfirst]
convert number of loops
||
encode=[url|html|html-chars|crypt]
encode number of loops to another format
||
trim=[left|right|both]
remove whitespaces from number of loops
||
convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
||
parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
||
encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
||
trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
||
[opr][condition]
condition may be used to check number of loops
2004 by master-p-formance.All rights reserved.
This manual is generated on the fly using mpfserver and
MPFT (mpf transformation).