This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 3 files changed +21
-3
lines changed
3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ function writeTheRest(writesFuture) {
54
54
55
55
56
56
writesFuture . push ( writer . copy ( 'docs/src/templates/index.html' , 'index-jq.html' ,
57
- writer . replace , { 'doc:manifest' : manifest } ) ) ;
57
+ writer . replace , { 'doc:manifest' : '' } ) ) ;
58
58
59
59
writesFuture . push ( writer . copy ( 'docs/src/templates/index.html' , 'index-jq-nocache.html' ,
60
60
writer . replace , { 'doc:manifest' : '' } ) ) ;
@@ -94,6 +94,7 @@ function writeTheRest(writesFuture) {
94
94
writesFuture . push ( writer . copyTpl ( 'app.yaml' ) ) ;
95
95
writesFuture . push ( writer . copyTpl ( 'index.yaml' ) ) ;
96
96
writesFuture . push ( writer . copyTpl ( 'favicon.ico' ) ) ;
97
+ writesFuture . push ( writer . copyTpl ( 'main.py' ) ) ;
97
98
}
98
99
99
100
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ default_expiration: "2h"
7
7
8
8
handlers :
9
9
- url : /
10
- static_files : index.html
11
- upload : index.html
10
+ script : main.app
12
11
13
12
- url : /appcache.manifest
14
13
static_files : appcache.manifest
Original file line number Diff line number Diff line change
1
+ import webapp2
2
+ from google .appengine .ext .webapp import template
3
+
4
+
5
+ class IndexHandler (webapp2 .RequestHandler ):
6
+ def get (self ):
7
+ fragment = self .request .get ('_escaped_fragment_' )
8
+
9
+ if fragment :
10
+ fragment = '/partials' + fragment + '.html'
11
+ self .redirect (fragment , permanent = True )
12
+ else :
13
+ self .response .headers ['Content-Type' ] = 'text/html'
14
+ self .response .out .write (template .render ('index-nocache.html' , None ))
15
+
16
+
17
+ app = webapp2 .WSGIApplication ([('/' , IndexHandler )])
18
+
You can’t perform that action at this time.
0 commit comments