迅睿模板比较合理的引用方式,纯属个人经验总结!有兴趣的可以拿去用
<!DOCTYPE html>
<html>
<head>
<title>{$meta_title}</title>
<meta content="{$meta_keywords}" name="keywords" />
<meta content="{$meta_description}" name="description" />
{template "top.html"}
</head>
<body>
{template "header.html"}
{template "footer.html"}
</body>
</html>通过这个结构方式,当某个页面需要自定义 标题,关键字时,可以很好的处理!当然,后台应该也可以!稍微需要点技术
在调用JS,css 方面,一些比较独立使用的,也可以避免多余的调用
{template "header.html"} <div>.... {template "footer.html"}我喜欢这样,代码量少一些