I'm trying to use import, but I can't make it work.
[[start]]: this is start [[intro]] @import intro.sq
[[intro]]: This is intro
$ squiffy start.sq Squiffy 5.1.3 Loading start.sq Writing story.js WARNING: start.sq line 1: In section 'start' there is a link to a section called [[intro]], which doesn't exist Writing index.html Writing style.css Done.
What am I doing wrong?
I'm using Windows 10 Ubuntu Subsystem with NodeJS 8.10.0 and Squiffy 5.1.3 (installed from NPM).
Does [[intro]] exist in intro.sp???
And knowing Quest...
Is it [[intro]] and not [[Intro]]???
Try renaming the files with the extension
.squiffy (instead of
First, I tested it with the
.sq extension, and I got the same results as you.
Then, I changed the extensions to
.squiffy (making sure to change the line in "start.squiffy" to
@import intro.squiffy), and it works.
[[email protected] squiffy-docs]$ ls intro.squiffy start.squiffy [[email protected] squiffy-docs]$ cat start.squiffy This is a test. [[intro]] @import intro.squiffy [[email protected] squiffy-docs]$ cat intro.squiffy [[intro]]: This is intro [[email protected] squiffy-docs]$ squiffy start.squiffy Squiffy 5.1.3 Loading /home/rh/squiffy-docs/start.squiffy Loading /home/rh/squiffy-docs/intro.squiffy Writing story.js Writing index.html Writing style.css Done.