~swisschili/blackjack

blackjack/site.lua -rw-r--r-- 310 bytes
b9c62f55swissChili Use same extension for verbatim files 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "blackjack"

local wordCountProcessor = cmdProcessor("wc -l")
local verbatimProcessor = cmdProcessor("cat")
local mySite = Site
mySite.processors.lc = {
  process = wordCountProcessor,
  extension = "txt"
}
mySite.processors.vb = {
  process = verbatimProcessor,
  extension = "html"
}

mySite:build()