breautek edited a comment on issue #303: URL: https://github.com/apache/cordova/issues/303#issuecomment-925336317
> Modifying html before loading it (i.e. rendering it with some templating engine). ~I don't think this is feasible. The native APIs expects an actual file URL of some sort, you can't just simply pass through HTML data for it to load. So this in itself, won't solve some of the mentioned workaround drawbacks.~ (https://github.com/apache/cordova/issues/303#issuecomment-925350129) > Smooth development using multi-page app architecture. Multi-page architecture is really not recommended in Cordova environments. If you have multiple pages, you constantly have to unload/re-initialise Cordova plugins, in addition to any of your app assets. Single-Page Apps is far more efficient, even in a general sense. I'd recommend taking a read over our [Best Practices](https://cordova.apache.org/docs/en/10.x/guide/next/index.html#best-practices-for-cordova-apps). > On android platform applicationDirectory is read only, so you have to write the rendered html file to a different directory. In this case you have to either: copy all resources that are loaded using relative paths into the same directory or modify relative path when rendering html. On some other platforms, namely iOS, the WKWebView will refuse to load anything outside of the iOS equivalent of `applicationDirectory`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org