rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
215 stars 68 forks source link

Can we place libs in a subdir of a common parent? #277

Open ThierryO opened 3 years ago

ThierryO commented 3 years ago

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.

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.

root
  - project_1
      - file1.html
       - file2.html
  - project_2
      - file1.html
       - file2.html
  - libs