AppML HTML 포함
AppML을 사용하면 HTML에 HTML을 포함할 수 있습니다.
HTML에 HTML 포함
이에 대한 좋은 예는 모든 HTML 페이지에 표준 HTML 바닥글을 포함하는 것입니다.
다음은 표준 바닥글이 포함된 파일의 예입니다.
inc_footer.htm
<hr style="margin-top:10px;">
<p style="font-size:11px">2016© W3Schools. All rights reserved.</p>
<hr>
이 예에서 appml-include-html 속성은 "inc_footer.htm" 파일을 포함하는 데 사용됩니다.
예시
<!DOCTYPE html>
<html lang="en-US">
<title>Customers</title>
<link rel="stylesheet" href="style.css">
<script src="https://www.w3schools.com/appml/2.0.3/appml.js"></script>
<body>
<h1>Customers</h1>
<table appml-data="customers.js">
<tr>
<th>Customer</th>
<th>City</th>
<th>Country</th>
</tr>
<tr appml-repeat="records">
<td>{{CustomerName}}</td>
<td>{{City}}</td>
<td>{{Country}}</td>
</tr>
</table>
<div appml-include-html="inc_footer.htm"></div>
</body>
</html>