অ্যাপ এম এলঃ এইচটিএমএল অন্তর্ভুক্ত করা (AppML HTML Includes)

রিদওয়ান বিন শামীম

 

এইচটিএমএলের ভেতর এইচটিএমএল অন্তর্ভুক্ত করা

এইচটিএমএল পেজের সর্বত্র একটি আদর্শ এইচটিএমএল ফুটার (HTML footer) অন্তর্ভুক্ত করা  হতে পারে এর আদর্শ উদাহরণ।

আদর্শ এইচটিএমএল ফুটারসমৃদ্ধ ফাইলের উদাহরণ নিচে দেয়া হল,

inc_footer.htm


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

 

 

এখানে "inc_footer.htm" অন্তর্ভুক্তির জন্য appml-include-html এট্রিবিউট ব্যবহৃত হয়েছে।

উদাহরণঃ


<!DOCTYPE html>
 <html lang="en-US">
 
 <title>Customers</title>
 <link rel="stylesheet" href="style.css">
 <script src="http://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>

 

 

Permanent link to this article: http://bangla.sitestree.com/%e0%a6%8f%e0%a6%87%e0%a6%9a%e0%a6%9f%e0%a6%bf%e0%a6%8f%e0%a6%ae%e0%a6%8f%e0%a6%b2-%e0%a6%85%e0%a6%a8%e0%a7%8d%e0%a6%a4%e0%a6%b0%e0%a7%8d%e0%a6%ad%e0%a7%81%e0%a6%95%e0%a7%8d%e0%a6%a4-%e0%a6%95%e0%a6%b0/

Leave a Reply