you need to name it html.esp, or access the content with test.foo :-)
regards, toby

On 1/19/08, Peter Svensson <[EMAIL PROTECTED]> wrote:
> HI again,
>
> now I've copied one of the esp examples info a file (called 'foo.esp'), and
> when I access it in my usling installation, I just get the text of the file.
> Is there something else that needs to be done, to enable esp parsing on the
> server?
>
> ---
>
> <%-- ESP template example, store this as html.esp --%>
> <html>
> <body>
> <p>This page is generated from an ESP template!</p>
> <h1><%= resource.getPath() %></h1>
> <%
>   for (var prop in resource.node) {
>     %>
>       <p>
>         <%= resource.node[prop] %>
>       </p>
>     <%
>   }
> %>
> </body>
> </html>
>
>
> ---
>


-- 
-----------------------------------------< [EMAIL PROTECTED] >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Reply via email to