From b4af1936d56330665e270ad719e09ad5f023c78d Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sun, 22 Jun 2014 00:16:31 -0700 Subject: [PATCH] don't look for template for source files without extension --- render.rkt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.rkt b/render.rkt index bcd831f..d786f2f 100644 --- a/render.rkt +++ b/render.rkt @@ -191,8 +191,8 @@ (let ([source-metas (cached-require source-path 'metas)]) (and ((->symbol world:template-meta-key) . in? . source-metas) (build-path source-dir (select-from-metas (->string world:template-meta-key) source-metas))))) ; path based on metas - (build-path (world:current-project-root) - (add-ext world:default-template-prefix (get-ext (->output-path source-path))))))) ; path to default template + (and (filename-extension (->output-path source-path)) (build-path (world:current-project-root) + (add-ext world:default-template-prefix (get-ext (->output-path source-path)))))))) ; path to default template (build-path (world:current-server-extras-path) world:fallback-template)))) ; fallback template