|
|
$extends Directive Demo |
|
Common Page: (common.ctl)
<html>
<head>
<!--$zone{"head"}-->
<title>$msg{"application.title"}</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="styles/common.css" />
<!--$end-->
</head>
<body>
<!--$zone{"menu"}-->
<div>common menu...</div>
<!--$end-->
<!--$zone{"body"}-->
<!--$end-->
<!--$zone{"copyright"}-->
$msg{"application.copyright"}...
<!--$end-->
</body>
</html>
Extends:
<!--$extends{"common.ctl"}-->
<!--$zone{"body"}-->
custom body
<!--$end-->
<!--$end-->
Override Head:
<!--$extends{"common.ctl"}-->
<!--$zone{"head"}-->
<!--$superzone-->
<scrpt type="text/javascript">
custom head
</scrpt>
<!--$end-->
<!--$zone{"body"}-->
custom body
<!--$end-->
<!--$end-->
<<Back
|
|
|