Compiled using min v0.27.0
h3rald h3rald@h3rald.com
Thu, 31 Dec 2020 14:03:23 +0000
3 files changed,
9 insertions(+),
18 deletions(-)
M
hastysite.nim
→
hastysite.nim
@@ -75,17 +75,21 @@ const STYLE_LUXBAR = "./site/assets/styles/luxbar.css".slurp
const STYLE_SITE = "./site/assets/styles/site.css".slurp const RULES = "./site/rules.min".slurp -let PEG_CSS_VAR_DEF = peg"""'--' {[a-zA-Z0-9_-]+} ':' {@} ';'""" -let PEG_CSS_VAR_INSTANCE = peg""" +var PEG_CSS_VAR_DEF {.threadvar.} : Peg +PEG_CSS_VAR_DEF = peg"""'--' {[a-zA-Z0-9_-]+} ':' {@} ';'""" +var PEG_CSS_VAR_INSTANCE {.threadvar.} : Peg +PEG_CSS_VAR_INSTANCE = peg""" instance <- 'var(--' {id} ')' id <- [a-zA-Z0-9_-]+ """ -let PEG_CSS_IMPORT = peg""" +var PEG_CSS_IMPORT {.threadvar.} : Peg +PEG_CSS_IMPORT = peg""" import <- '@import' \s+ '\'' {partial} '\';' partial <- [a-zA-Z0-9_-]+ """ -var CSS_VARS = initTable[string, string]() +var CSS_VARS {.threadvar.} : Table[string, string] +CSS_VARS = initTable[string, string]() #### Helper Functions@@ -203,7 +207,7 @@ result["id"] = %path
else: result["id"] = %path.changeFileExt("") # output path relative to output without extension -proc hastysite_module*(i: In, hs1: HastySite) +proc hastysite_module*(i: In, hs1: HastySite) {.gcsafe.} proc interpret(hs: HastySite, file: string) = var i = newMinInterpreter(file, file.parentDir)
D
hastysite.nim.cfg
@@ -1,12 +0,0 @@
-# https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/ -# Remember to pass passL:"-static" when cross compiling on linux! - -define: release - -amd64.windows.gcc.path = "/usr/local/bin" -amd64.windows.gcc.exe = "x86_64-w64-mingw32-gcc" -amd64.windows.gcc.linkerexe = "x86_64-w64-mingw32-gcc" - -amd64.linux.gcc.path = "/usr/local/bin" -amd64.linux.gcc.exe = "x86_64-linux-musl-gcc" -amd64.linux.gcc.linkerexe = "x86_64-linux-musl-gcc"
M
nifty.json
→
nifty.json
@@ -34,7 +34,6 @@ "src": "https://github.com/h3rald/hastyscribe.git"
}, "min": { "name": "min", - "tag": "next", "git": true, "src": "https://github.com/h3rald/min.git" },