Wed, 11 Jan 2017 09:45:36 GMT
Hello, I'm new to Framework7 and have been experimenting with all sorts of features. Loving it so far.
One thing I am having trouble understanding though:
In single page web apps or sites, external HTML pages are loaded into "view". Since external HTML files do not have to include the standard <html>, <head>, <body>, scripts, and styles since they're already declared in the "index.html" file, how would you get around the problem of visitors typing the direct URL to the file or page.
For instance, if someone where to go to www.domain.com/about they would see a plain HTML page with no scripts loaded or styles applied since they're viewing the external HTML directly that's supposed to be loaded into the "view". Instead what they're seeing is a page that looks broken to the user.
Sorry if I am not using the right terminology since I am new to all this and learning, but I've looked into routes and views and the only way I can see getting around it is detecting if th e user has typed "about" or "about.html" then load that corresponding page into "view".
Thanks for any insight and assistance. And sorry if this has already been resolved or posted somewhere.
Thu, 12 Jan 2017 03:35:01 GMT
I think the easiest way to explain it is Framework 7 is designed for people creating Cordova/Phonegap apps who want to replicate the native iOS or Android look & feel, without needing to write native code. For your scenario, it's not a useful framework, and because it is designed for a single-page app. A single-page app wouldn't really benefit from strongly-typed URL's outside of the domain homepage.