Paths - support for ~ / home directory relative paths
Posted by neontapir on
URL: https://discuss.asciidoctor.org/Paths-support-for-home-directory-relative-paths-tp584.html
Hello, I have a question. I'd like to do something like this at the top of my AsciiDoc file to apply a stylesheet from a consistent directory.
:styledir: ~/lib/asciidoctor/stylesheets
:stylesheet: {styledir}/riak.css
However, looking at test/paths_test.rb, it doesn't look like Asciidoctor's path resolver supports tilde home directory-style paths.
Is there a way to achieve this effect without manually resolving my home directory? The stylesheet is included correctly if I do.