AppML include’lar


AppML yordamida HTML ichiga HTML qo‘shishingiz (include) mumkin.


ULASHISH

HTML ichiga HTML qo‘shish

Bunga yaxshi misol — barcha HTML sahifalaringizga standart HTML footer’ni qo‘shish.

Quyida standart footer’ni o‘z ichiga olgan fayl misoli keltirilgan:

inc_footer.htm

<hr style="margin-top:10px;"> <p style="font-size:11px">2016&copy; W3Schools. All rights reserved.</p> <hr>

Ushbu misolda "inc_footer.htm" faylini qo‘shish uchun appml-include-html atributidan foydalaniladi:

Misol

<!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>
O‘zingiz sinab ko‘ring »


W3Schools Pathfinder

Yutuqlaringizni kuzating – bu bepul!