Authored by xuqi

env variable

1 {{> layout/page_footer}} 1 {{> layout/page_footer}}
2 -<script src="http://localhost:8000/static/js/sea.js?nowrap"></script>  
3 -<script> 2 +{{#if rlsEnv}}
  3 + <link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/{{version}}/lib.js">
  4 + <link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/{{version}}/index.js">
  5 +{{/if}}
  6 +
  7 +{{#if rlsEnv}}
  8 +{{/if}}
  9 +
  10 +{{#if devEnv}}
  11 + <script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
  12 + <script>
4 seajs.config({ 13 seajs.config({
5 base: 'http://localhost:8000/' 14 base: 'http://localhost:8000/'
6 }); 15 });
7 -</script> 16 + </script>
  17 +{{/if}}
8 {{> layout/use}} 18 {{> layout/use}}
9 </body> 19 </body>
10 </html> 20 </html>
@@ -22,7 +22,17 @@ @@ -22,7 +22,17 @@
22 }()); 22 }());
23 })(document, window); 23 })(document, window);
24 </script> 24 </script>
  25 + {{#if rlsEnv}}
  26 + <link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/{{version}}/index.css">
  27 + {{/if}}
  28 +
  29 + {{#if rlsEnv}}
  30 + {{/if}}
  31 +
  32 + {{#if devEnv}}
25 <link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css"> 33 <link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css">
  34 + {{/if}}
  35 +
26 </head> 36 </head>
27 <body {{#if isPassportPage}}class=passport-body{{/if}}> 37 <body {{#if isPassportPage}}class=passport-body{{/if}}>
28 {{> layout/page_header}} 38 {{> layout/page_header}}