~swisschili/blackjack

b9c62f550dfd3033dc068aa3f17abee2a8aa63fe — swissChili 9 months ago 524a6f2 master
Use same extension for verbatim files
1 files changed, 8 insertions(+), 1 deletions(-)

M blackjack.lua
M blackjack.lua => blackjack.lua +8 -1
@@ 181,9 181,16 @@ function Site:build()
  for file in p:lines() do
    print(" Building: ".. file)
    local html = self:render(file, self.global)
    local ext = getExtension(file)
    local newext
    if self.processors[ext] then
      newext = replaceExtension(file, self.processors[ext].extension)
    else
      newext = ext
    end
    local outFile = self.output .. getFileName(
      self,
      replaceExtension(file, self.processors[getExtension(file)].extension)
      newext
    )
    print("  Writing: " .. outFile)
    local file = io.open(outFile, "w")