move template into a runtime path

This commit is contained in:
xenia 2020-10-25 02:57:06 -04:00
parent a822a1747d
commit e9e03d770b
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#lang racket/base
(require racket/bool racket/function racket/match racket/set racket/vector
(require racket/bool racket/function racket/match racket/runtime-path racket/set racket/vector
(rename-in scribble/text/output [output scribble-output])
scribble/text
(for-syntax racket/base racket/syntax))
@ -115,8 +115,9 @@
(permute 0 gen))
;; ok gamer move time
(define-runtime-path codegen-template "codegen.template")
(define (pattern-codegen pattern)
(eval-template "codegen.template" (hash 'pattern pattern)))
(eval-template `(file ,(path->string codegen-template)) (hash 'pattern pattern)))
(define-values [name mode command pattern]
(parse-manifest