What are you working on? - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
(15-07-2016, 09:16 AM)pranomostro Wrote: Not in the shell I use :D Oh! rc? eshell? A programing language as a shell? I finished the www script, but really not as I planned to do: 3 attempts at implementing it, in awk, shell script and lua, with a recursive function parsing the layout's {{ keywords }}. I had the same issue every time! "Flat is better than nested"? -- Python.org So I changed the approach: I was not needing such a complex system. I reduced it to a 80 lines script: One page per directory that lists the sub directories, and the files. And the content of these pages are taken from the 'INDEX' files if presents in the directories. It still has a layout.html file to tell how you want the pages to be formatted. It only use <code>mkdir</code>, <code>cp</code>, <code>find</code>, <code>cat</code>, <code>stat</code> and shell builtins. I took inspiration from werc (cat-v.org, suckless.org), and meillo at marmaro.de. kirby: I think I know which game you will test it with... *whistles innocently* |
|||