Beispiel #1
0
function jBlockParsing($_type = "html", $_string = "", $_parameters = [])
{
    switch ($_type) {
        case "pug":
        case "jade":
            $Pug = new Pug();
            $_string = $Pug->drawText($_string, $_parameters);
            break;
        case "md":
        case "markdown":
        case "parsedown":
            $Parsedown = new Parsedown();
            $_string = $Parsedown->drawText($_string);
            break;
        case "twig":
            $Twig = new Twig();
            $_string = $Twig->drawText($_string, $_parameters);
            break;
        default:
            break;
    }
    return $_string;
}