foam-framework
Version:
MVC metaprogramming framework
23 lines (20 loc) • 584 B
HTML
<html>
<head>
<script src="../../core/bootFOAM.js"></script>
<link rel="stylesheet" type="text/css" href="../../core/foam.css" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<script type="text/javascript">
var view = GalleryView.create({
images: ['img1.jpg', 'img2.jpg', 'img3.jpg'],
height: 400
});
window.requestAnimationFrame(function() {
document.body.innerHTML += view.toHTML();
view.initHTML();
});
</script>
</head>
<body>
<h2>Gallery View</h2>
</body>
</html>