The current implemention requires that the lib dir has the same root as the html file. This allows to have a common lib dir for multiple files as long as these files have the same root.
root
- file1.html
- file2.html
- libs
What we currently can't do, is place the lib dir at a higher level. E.g. a structure as listed below. That would allow to share the lib dir across different projects in the same root.
https://github.com/rstudio/htmltools/blob/35d631e6f4e8a35ff7f25f8cc3ae185069cccffd/R/html_dependency.R#L402
The current implemention requires that the lib dir has the same root as the html file. This allows to have a common lib dir for multiple files as long as these files have the same root.
What we currently can't do, is place the lib dir at a higher level. E.g. a structure as listed below. That would allow to share the lib dir across different projects in the same root.