问题
I was interested on on Google's web app-Shell. I've downloaded it GitHub. But I found that there is no index.html/index.php file in the whole code. All I mainly found, is the licence file, app.yaml file and app.js file. Link to that page, is here. I heard,that I can install the project in my web hosting site, by using terminal. But terminal is not an option for my situation. I've stopped using Firebase, because I must have terminal for it. So, is there any other idea to install the project in my website? Can I have a flat file, so that I could simply past the html,css, JavaScript and other media files into my server?
回答1:
Unfortunately the Google web app-Shell isn't designed to have an index.html
file. There is a views folder that has what you're looking for https://github.com/GoogleChromeLabs/application-shell/tree/master/server/views.
As we can see they're using handlebars for as a templating system. For example, if we look at https://github.com/GoogleChromeLabs/application-shell/blob/master/server/views/layouts/default.handlebars we can see that they have {{> open-page}}
and {{{body}}}
. If we look at handlebars documentation these partials are rendered into other views.
Essentially, there isn't a single index.html
we can point to, but we can reconstruct the app by exploring their views.
来源:https://stackoverflow.com/questions/46565416/index-html-index-php-not-found-in-google-codelabs-app-shell