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
I have managed to do this running twee2 0.5.0 on macOS 10.12.6. For some reason, the paths are relative to where you're running twee2 from, not to the source file. So say you have a project folder with a src folder inside it, and various subfolders inside that, but you're running twee2 from your project folder like so:
$ twee2 watch src/main.tw2 build/index.html
Your paths in the StoryIncludes need to be formatted relative to the project folder. e.g.:
::StoryIncludes
src/subpages/page1.tw2
I would consider this its own bug, honestly, and would love to hear comment from @Dan-Q on whether this was intentional or not. I feel that it would make more sense if the filepaths included in any given StoryIncludes passage were loaded relative to the file containing that particular passage.
I want to include files that are not in the same folder that my main file is
::StoryIncludes
subpages/page1.tw2
I tried putting slashes and backslashes everywhere but did not manage to get it to work.
The text was updated successfully, but these errors were encountered: