You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
Currently, images are interpreted relative to this project's
html5bp/
directory. This makes it difficult to include image assets inline. With acwd
option, the consumer code could set the relative location from which to interpret the generated HTML document. This feature would also simplify thecssPath
option (where users currently have to specify a path in terms of this module'shtml5bp/
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'sindex.html
file would have to be made into a template so that the resources it references could be loaded independently of the user-specifiedcwd
.Does the feature make sense? How about the proposed implementation?
The text was updated successfully, but these errors were encountered: