mbutterick / pollen-users

please use https://forums.matthewbutterick.com/c/typesetting/ instead
https://forums.matthewbutterick.com/c/typesetting/
52 stars 0 forks source link

Debugging Template Files (tutorial 2 `next` and `previous` not working) #64

Closed jafish closed 4 years ago

jafish commented 4 years ago

I'm working through the Pollen tutorial 2, and everything was going swimmingly until I got to section 6.6.3. The next and previous functions aren't returning anything, even when I get to the later section on building custom pagetrees. My pagetree appears properly in the browser via the server (i.e. in section 6.6.5 I only see the three pages). I'm just never seeing any results from next/previous.

Any suggestions to debug this?

Here's what I'm seeing:

Screen_Shot_2020-07-01_at_4 13 21_PM

Thanks in advance for any suggestions!

otherjoel commented 4 years ago

It looks like you might be running raco pollen start from a folder one level up from the one containing the tutorial files.

We can see from the screenshot that the value of here is tutorial2/article.html. But I am guessing that, per the tutorial, what your custom pagetree actually contains is article.html without the tutorial2/ in front. Nodes in a pagetree nodes must be given relative to the current "root" of the project, which is determined by the folder from which you ran the raco pollen start command.

If you run raco pollen start from within your tutorial2 folder does it work properly?

jafish commented 4 years ago

@otherjoel I was running raco pollen start from one directory up. Running it in the tutorial2 directory fixed the issue! Thanks so much - nice observation on the path in here.