Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 881 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 881 Bytes

New PHP Template Render Based On DOM Parse

Usages

include "./CsRender.php";
$params = [
    "title"      => "New PHP Render Based On DOM Parse",
    "is_author"  => true,
    "show_intro" => false,
    "intro"      => "no intor",
    "author"     => "liangwt",
    "userInfo"   => [
        "name"   =>"liangwt",
        "sex"    => "m",
        "age"    => 18,
    ],
    "content"    => "This is a php templete rander based on DOM element, which offered a grammar like Vue",
    "items"      => [
        "A",
        "B",
        "C",
    ],
];

$cs = new CsRender();
echo $cs->render("./tpl.html", $params);

Read More