Skip to topic | Skip to bottom
Home
Lily
Lily.MooServerPagesr1.3 - 22 Dec 2005 - 00:06 - JeffRtopic end

Start of topic | Skip to actions
Looking at the code for $http_agent, it's suffering from much the same problems Java's Servlet's do - lots of print statements containing HTML fragments, and the answer is much like that for servlets was JSP - MSP. Have properties like "foo.msp", which would look like:


<h1> Here's a list </h1>
<ul>
  <% for p in (this.pages) %>
    <li> <a href="<%= p.url %>"><%= p.content %></a>
  <% endfor %>
<ul>

Then, rework the HTTP request handler so that any requests for pages that end in .msp are pulled through the MSP engine and rendered. Can still leave the / handling that currently exists, for form handling, etc.

-- CoKe - 28 Nov 2003

"I can't be the first person to try to do this."

And, I'm not. http://www.moo.ca/ has a working implementation, though their source is obscured.

-- CoKe - 29 Dec 2003

  • MSP.code: Sample implementation of a possible MSP engine.

-- JeffR - 22 Dec 2005

moo.ca's MSP home: http://www.moo.ca/301

and gopher://moo.ca/0/300:compile appears to be the core of their MSP compiler.
to top

I Attachment sort Action Size Date Who Comment
MSP.code manage 1.2 K 19 Dec 2005 - 03:12 CoKe Sample implementation of a possible MSP engine.

You are here: Lily > DeveloperGuide > FeaturesWanted > MooServerPages

to top

Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding this site? Contact Christopher Masto <chris@masto.com>.