DEV Community

Discussion on: Back to Basics: Building a HackerNews Clone with Marko

Collapse
 
johnpageagixis profile image
johnpage-agixis • Edited

Windows doesn't like colons in filenames, particularly since NTFS treats "file:name" as an alternate data stream called "data" of the file called "file".

Sure enough, I tried cloning your git repo on windows and it said

error: invalid path 'src/pages/:stories/index.marko'
Enter fullscreen mode Exit fullscreen mode

Is there an alternative syntax?

EDIT: I can't find any mention of automatic route detection in the docs.

EDIT: found it hidden in the cli README for the serve command github.com/marko-js/cli/blob/maste...

Collapse
 
ryansolid profile image
Ryan Carniato

Not currently. I believe someone reported this issue a little while back. We were talking about changing to something similar to Next.js routing paths. Ie using src/pages/[stories].