ऐपएमएल एचटीएमएल शामिल है
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>