#lang racket
(require "properties.ss"
"mred-plugin.ss"
"mred-id.ss"
"default-values.ss"
"mreddesigner-misc.ss" racket/gui/base
framework
"widgets/project/preview.ss"
)
(define-namespace-anchor nsa)
(define ns (namespace-anchor->namespace nsa))
(provide template-load-file)
(define (template-load-file file)
(debug-printf "template-load-file: load ~a\n" file)
(with-input-from-file file
(λ()(let loop ([last-exp (void)])
(let ([exp (read)])
(if (eof-object? exp)
(begin
(printf "template-load-file: load done\n")
last-exp
)
(loop (eval exp ns)))))
))
)