Re: Paths - support for ~ / home directory relative paths

Posted by LightGuardjp on
URL: https://discuss.asciidoctor.org/Paths-support-for-home-directory-relative-paths-tp584p585.html

I would think ruby will drop down and let the OS complete the path. Give it a try and find out :) In the worst case you found a bug we can fix!


On Thu, Sep 12, 2013 at 5:15 PM, neontapir [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello, I have a question. I'd like to do something like this at the top of my AsciiDoc file.

: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?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Paths-support-for-home-directory-relative-paths-tp584.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Jason Porter
http://en.gravatar.com/lightguardjp