Debugging Template Files (tutorial 2 next
and previous
not working)
#64
Closed
opened 4 years ago by jafish
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
I'm working through the Pollen tutorial 2, and everything was going swimmingly until I got to section 6.6.3. The
next
andprevious
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 fromnext
/previous
.Any suggestions to debug this?
Here's what I'm seeing:
Thanks in advance for any suggestions!
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
istutorial2/article.html
. But I am guessing that, per the tutorial, what your custom pagetree actually contains isarticle.html
without thetutorial2/
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 theraco pollen start
command.If you run
raco pollen start
from within yourtutorial2
folder does it work properly?@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 inhere
.