compile _as_string variants for legacy templates (.hsp)
This commit is contained in:
parent
186f7d37d7
commit
3a12fe94ef
1 changed files with 5 additions and 0 deletions
|
@ -693,6 +693,11 @@ public final class RhinoCore {
|
|||
try {
|
||||
updateEvaluator(prototype, info, new StringReader(fa.function),
|
||||
action.getSourceName(), 0);
|
||||
if (fa.functionAsString != null) {
|
||||
// templates have an _as_string variant that needs to be compiled
|
||||
updateEvaluator(prototype, info, new StringReader(fa.functionAsString),
|
||||
action.getSourceName(), 0);
|
||||
}
|
||||
} catch (Exception esx) {
|
||||
app.logEvent("Error parsing " + action + ": " + esx);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue