要改成php文件,或者使用javascript;htm文件 全部改成php文件;
page.php 中
<html>
<body>
<table>
<tr><td>
<?php
include"vai.php";
?>
</td></tr>
</table>
</body>
</html>

解决方案 »

  1.   

    {}调用模板库 是在php中调用htm!
      

  2.   

    function getTemplate($template,$EXT="htm") 
        {
                $templateCache[$template] = str_replace("\"","\\\"",implode("",file("templates/".$template.".".$EXT)));
    return $templateCache[$template];
        }
    $vai.htm = "aa";
    eval("\$outPut = \"".$getTemplate("vai.htm")."\;");
    echo $outPut;