7-5 appendモディファイアとprependモディファイア
157ページ
<mt:SetVar name="foo" value="Hello" />
<mt:SetVar name="foo" value="World" appned="1" />
<mt:GetVar name="foo" />
<mt:SetVar name="foo" value="Hello" />
<mt:SetVar name="foo" value="World" prepend="1" />
<mt:GetVar name="foo" />
「HTMLヘッダー」テンプレートモジュール
<meta http-equiv="Content-Type" content="text/html;charset=<$mt:PublishCharset$>" />
<meta name="generator" content="<$mt:ProductName version="1"$>" />
<link rel="stylesheet" href="<$mt:Link template="styles"$>" type="text/css" />
<link rel="start" href="<$mt:BlogURL$>" title="Home" />
<link rel="alternate" type="application/atom+xml" title="Recent Entries" href="<$mt:Link template="feed_recent"$>" />
<script type="text/javascript" src="<$mt:Link template="javascript"$>"></script>
<$mt:CCLicenseRDF$>
158ページ
「HTMLヘッダー」テンプレートモジュール
<mt:if name="before">
<mt:SetVarBlock name="html_head" append="1">
<script type="text/javascript" src="<$mt:Link template="javascript"$>"></script>
</mt:SetVarBlock>
<mt:else>
<mt:SetVarBlock name="html_head" prepend="1">
<script type="text/javascript" src="<$mt:Link template="javascript"$>"></script>
</mt:SetVarBlock>
</mt:if>
<meta http-equiv="Content-Type" content="text/html; charset=<$mt:PublishCharset$>" />
<meta name="generator" content="<$mt:ProductName$>" />
<link rel="stylesheet" href="<$mt:Link template="styles"$>" type="text/css" />
<link rel="start" href="<$mt:BlogURL$>" title="Home" />
<link rel="alternate" type="application/atom+xml" title="Recent Entries" href="<$mt:Link template="feed_recent"$>" />
<mt:GetVar name="html_head" />
<$mt:CCLicenseRDF$>
「A」テンプレート
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
<mt:SetVarBlock name="html_head">
<script type="text/javascript" src="http://.../"></script>
</mt:SetVarBlock>
<$mt:Include module="HTML " before="1"$>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$mt:Link template="rsd"$>" />
<title><$mt:BlogName encode_html="1"$></title>
</head>
...中略...
159ページ
「B」テンプレート
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
<mt:SetVarBlock name="html_head">
<script type="text/javascript" src="http://.../"></script>
</mt:SetVarBlock>
<$mt:Include module="HTML after="1"$>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$mt:Link template="rsd"$>" />
<title><$mt:BlogName encode_html="1"$></title>
</head>
...中略...