-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow sitelets to return SPAs #1403
Comments
@granicz I was thinking we can bring Sitelets/SPAs/Offline sitelets all together. |
The point of In a way, this is similar to serving a page with an The intended behavior is that each |
@granicz I see, what should the bundle .js be named? From your use case, it seems you don't want to pre-bake the initialization into "home.html", and this would be looked up from app root, not web root (not a public file by itself). So if you want to use the same html in multiple places, we could do this:
|
There would be near-zero chance for an HTML file to be used with multiple instantiations, so I'd just go with 1). |
Now that we have a prototype for sitelet bundling, we have the capability to extend it over SPAs. For instance, given an SPA entry point:
... allow it to be served with its static HTML:
Here, the proposed
Content.PageFromFile
is akin to the currentPage.Content
: we generate a page bundle (a.js
file named after the HTML file) and entrypoint code from the supplied quoted expression (Client.HomePage()
above) to be automatically included in the response (into the usual "scripts" placeholder).The text was updated successfully, but these errors were encountered: