I have several html files which will be located in the documents directory at locations only known at runtime (may be within a varying tree hierarchy).
The resource files (javascript and css) however will be located within the application bundle.
What path do I need to use in the html files in order for them to find the resource files?
Note that it is not enough to set the base path relative to the resource files as this will mess up the links in the HTML to its own images etc.