[plt-scheme] Web Server Templates - absolute paths?

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Wed Nov 26 18:06:44 EST 2008

Thanks Eddie.

include-template uses the same path requirement as include [1]

The docs say that a simple string is a relative path, but if you use
(file "path") then it may be absolute using OS-specific conventions
such as c:// or /. So try:

(include-template (file "c:/path/template.html"))


1. http://docs.plt-scheme.org/reference/include.html#(form._((lib._scheme/include..ss)._include))

On Wed, Nov 26, 2008 at 2:29 PM, Eddie Sullivan <eddieSull at hotmail.com> wrote:
> Thanks Jay McCarthy and all who worked on the templating system for the PLT
> Web Server. I've started playing with it, and it seems very cool. I do have
> one question: From my experiments, it seems include-template requires a
> relative file path, and does not except an absolute path. For example, if I
> try:
> (include-template "c:/path/template.html")
> I see the following error:
> include-at/relative-to/reader: bad relative pathname string in:
> "c:/path/template.html"
> Is there any way to make this work with an absolute path?
> Thanks.
> -Eddie Sullivan
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.