`cwd` option or similar #21

Closed
jugglinmike opened this Issue Feb 14, 2014 · 2 comments

Comments

Projects
None yet
3 participants

Currently, images are interpreted relative to this project's html5bp/ directory. This makes it difficult to include image assets inline. With a cwd option, the consumer code could set the relative location from which to interpret the generated HTML document. This feature would also simplify the cssPath option (where users currently have to specify a path in terms of this module's html5bp/ directory).

I'm thinking this could be implemented using PhantomJS's setContent method, which allows for setting the page content and URL separately. In this case, the HTML5 Boilerplate's index.html file would have to be made into a template so that the resources it references could be loaded independently of the user-specified cwd.

Does the feature make sense? How about the proposed implementation?

Owner

alanshaw commented Feb 14, 2014

YES. That's a great plan. Maybe name it something different because this could get confusing with the output path used by the CLI. A PR would be gratefully accepted.

Random user feedback: this issue was a show-stopper when I tried using this module. :-(

alanshaw closed this in c4b8cb4 Jan 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment