forked from sofa/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (28 loc) · 1.49 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!doctype html>
<html lang="en"
ng-class="{'cc-tablet-size' : isTabletSize }"
ng-app="CouchCommerceApp"
ng-controller="MainController">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="fragment" content="!">
<meta name="robots" content="{{meta.robots}}">
<meta name="description" content="{{meta.description}}">
<title>CouchCommerce</title>
<!-- compiled CSS --><% styles.forEach( function ( file ) { %>
<link rel="stylesheet" type="text/css" href="/<%= file %>" /><% }); %>
</head>
<!-- http://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari -->
<body ontouchstart="">
<!-- initially we used ng-include on the body. Unfortunately this broke deep linking for products/product
However, our goal is to not introduce an unneeded wrapping div as it further stresses the mental overload
that already comes with the complex task of creating robust fixed toolbars + fallback + a scrolling container.
We now achieve the same as with ng-include on the body by using cc-include on a child div (the child div
will be replaced after the directive does it's thing) -->
<div cc-include="tpl.SHELL"></div>
<!-- compiled JS --><% scripts.forEach( function ( file ) { %>
<script type="text/javascript" src="/<%= file %>"></script><% }); %>
</body>
</html>