mpfserver Manual
 
 
 Examples | replace data in string
replace sex in string sex appeal by ***
{mpf:replace=sex||***||data=sex appeal}
remove sex from string sex appeal
{mpf:replace=sex||||data=sex appeal}
remove sex from section
{mpf:replace=sex}
... this is the string that must not contain "sex" after replacements ...
{/mpf:replace=sex}
store result in myVar (direct store mode)
{mpf:replace=sex||***||var=myVar}
... string to parse ...
{/mpf:replace=sex||***||var=myVar}
store result in myVar (use as embedded token)
{mpf:set=myVar||{mpf:replace=sex||***||data=sex appeal}||!=}
import data from a CSV-table file, convert to HTML-table and display
{mpf:set=hits||import||data=../../logs/hits.csv}
{mpf:replace="\n||</td><td>||var=hits}
{mpf:replace=","||</td></tr>||var=hits}
{mpf:replace="||<tr><td>||var=hits}

<table>{mpf:hits}</table>
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).