parse skins for comments like this:
<% // comment %> helma doesn't call macros with that syntax, but uses parameter default="xxx" if it is included in the comment tag!
This commit is contained in:
parent
210aed5197
commit
0879e2e1ff
1 changed files with 13 additions and 9 deletions
|
@ -53,15 +53,19 @@ public class DocSkin extends DocFileElement {
|
||||||
String str = (new String (source, i+2, j-i)).trim ();
|
String str = (new String (source, i+2, j-i)).trim ();
|
||||||
if (str.endsWith("%>"))
|
if (str.endsWith("%>"))
|
||||||
str = str.substring (0, str.length()-2);
|
str = str.substring (0, str.length()-2);
|
||||||
if (str.indexOf (" ")>-1)
|
if (str.startsWith ("//")) {
|
||||||
str = str.substring (0, str.indexOf(" "));
|
parseComment (str);
|
||||||
if (str.indexOf(".")>-1 &&
|
} else {
|
||||||
(str.startsWith ("param.")
|
if (str.indexOf (" ")>-1)
|
||||||
|| str.startsWith ("response.")
|
str = str.substring (0, str.indexOf(" "));
|
||||||
|| str.startsWith("request.")
|
if (str.indexOf(".")>-1 &&
|
||||||
|| str.startsWith ("session.")
|
(str.startsWith ("param.")
|
||||||
) && !partBuffer.contains(str)) {
|
|| str.startsWith ("response.")
|
||||||
partBuffer.add (str);
|
|| str.startsWith("request.")
|
||||||
|
|| str.startsWith ("session.")
|
||||||
|
) && !partBuffer.contains(str)) {
|
||||||
|
partBuffer.add (str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
start = j+2;
|
start = j+2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue