I'm playing with w3.css and want to expand a template and include some HTML. The example is as follows:
<!DOCTYPE html>
<html>
<title>BUG</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css"/>
<script src="http://www.w3schools.com/lib/w3data.js"></script>
<body>
<div class="w3-container">
<div id="id03">
<div w3-repeat="customers">
<p>Here: img = {{CustomerName}} text={{City}} country={{Country}}</p>
</div>
</div>
<div w3-include-html="include.html"></div>
</div>
<script>
w3IncludeHTML();
var myObject = {"customers":[
{"CustomerName":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"},
{"CustomerName":"Around the Horn","City":"London","Country":"UK"},
{"CustomerName":"Chop-suey Chinese","City":"Bern","Country":"Switzerland"}
]};
w3DisplayData("id03", myObject);
</script>
</body>
</html>
and the included file (include.html) is
<div>
<h1>I am included</h1>
<button class="w3-btn w3-white w3-border">Button</button>
</div>
If I comment out the w3IncludeHTML line the program works as I expect but with this line included the expansion is incorrect and the file included twice.
And ideas what's wrong?