Spike

Spike

A modern static build tool, powered by webpack

Get Started    Support
Ask A Question

Questions

Build Menu programmatically

Posted by Justin H 11 days ago

I'd like to build a list of links automatically from every file in a subfolder of /Views.

For example, in a hypothetical /views/category/index.sgr, I'd like to build a list of links by enumerating all the files in that folder. e.g.

/Views/category/page1.sgr
/Views/category/page2.sgr
/Views/category/pageX.sgr

Any suggestions on how to accomplish this?

Loading comments...