Hi,

Maybe an interface like this (to be expanded with more useful
functions) would be good?

public interface SlingScriptHelpers {
    /** Include the resource pointed to by the given path in the
current response */
    void include(String relativeOrAbsolutePath) throws IOException,
ServletException;
}

And this would be made available to scripts as a variable named "sling".

I haven't looked in detail at the existing Sling stuff, so we might
need more than that?
(keeping in mind the minimalism of microsling)

-Bertrand

Reply via email to