diff --git a/src/helma/framework/core/Skin.java b/src/helma/framework/core/Skin.java index b670fd7c..b88a1b35 100644 --- a/src/helma/framework/core/Skin.java +++ b/src/helma/framework/core/Skin.java @@ -37,6 +37,9 @@ public class Skin { parse (content); } + /** + * Parse a skin object from source text + */ public void parse (String content) { this.source = content; @@ -68,10 +71,16 @@ public class Skin { parts = partBuffer.toArray (); } + /** + * Get the raw source text this skin was parsed from + */ public String getSource () { return source; } + /** + * Render this skin + */ public void render (RequestEvaluator reval, ESObject thisObject, ESObject paramObject) throws RedirectException { if (parts == null) @@ -95,6 +104,25 @@ public class Skin { } } + /** + * Check if a certain macro is present in this skin. The macro name is in handler.name notation + */ + public boolean containsMacro (String macroname) { + for (int i=0; i