-ImplicitPage with .maya
アプリのテンプレです。
<html> <head> <meta http-equiv="content-type" content="text/html; charset=Shift_JIS"> </head> <body> <span id="aaa"> <div>本文</div> </span> </body> </html>
次がアプリの設定XML。
<?xml version="1.0" encoding="Shift_JIS"?> <maya> <taglib prefix="x" tagdir="/implicit"/> <tag id="aaa" inject="x:implicitpage2.html"/> </maya>
埋め込みページのテンプレ。
<html> <head> <meta http-equiv="content-type" content="text/html; charset=Shift_JIS"> </head> <body> <span id="bbb"> <div>ヘッダ</div> <span id="ccc"> テンプレダミーテキスト </span> <div>フッタ</div> </span> </body> </html>
埋め込みページの設定XML。
<?xml version="1.0" encoding="Shift_JIS"?> <maya> <doContents id="bbb"/> <doBody id="ccc"/> </maya>
これが、
<html> <head> <meta http-equiv="content-type" content="text/html; charset=Shift_JIS"> </head> <body> <div>ヘッダ</div> <div>本文</div> <div>フッタ</div> </body> </html>