Hmm. I don't really understand what I'm doing.
Whatever url I access I get this;
** Node dumped by PlainTextRendererServlet**
Node path:/bunkai
Resource metadata: {sling.resolutionPath=/bunkai}
** Node properties **
jcr:created: 2008-01-18T02:47:25.953Z
jcr:primaryType: nt:folder
Which I thought meant that my script ran, but when I look more
closely, I see that this is autogenerated stuff.
I've tried http://localhost:8080/bunkai,
http://localhost:8080/bunkai.foo, et.c. and the same things show up.
I've tried to copy the file as html.esp, foo.esp, both in the /bunkai
folder and to the root ndoe, to no effect.
What am I missing here?
Does anyone have a working example, with placement rules, etc. that I can use??
Cheers,
PS
I had planned on putting the script in the root source node, though, and
then iterate from that
On Jan 19, 2008 11:02 AM, Tobias Bocanegra <[EMAIL PROTECTED]> wrote:
> 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 >---
>