retrogradeorbit / bootleg

Simple template processing command line tool to help build static websites
Eclipse Public License 2.0
255 stars 12 forks source link

Add file globbing #18

Closed retrogradeorbit closed 4 years ago

retrogradeorbit commented 4 years ago

I want to process a bunch of yaml description files in different directories into a single overview that will be used to create a overview page.

I think https://github.com/jkk/clj-glob could really help.

retrogradeorbit commented 4 years ago

clj-glob has issues. Doesn't seem to work with prepended path.

$ lein run -d -e '(glob "*.clj")'
(#object[java.io.File "0x311d28f5" "./example.clj"]
 #object[java.io.File "0x77ce8bc5" "./site.clj"]
 #object[java.io.File "0x6cde0c69" "./project.clj"]
 #object[java.io.File "0x6f4d2294" "./test-edn.clj"])
$ lein run -d -e '(glob "./*.clj")'
()

Will implement my own glob

retrogradeorbit commented 4 years ago

https://github.com/retrogradeorbit/bootleg/pull/20