final Matcher matcher = SCRIPT_INLINE_EVAL_PATTERN.matcher(input);
if (matcher.find()) {
final Configuration configuration = arguments.getConfiguration();
final IStandardExpressionParser expressionParser = StandardExpressions.getExpressionParser(configuration);
final StringBuilder strBuilder = new StringBuilder();
int curr = 0;
do {
strBuilder.append(input.substring(curr,matcher.start(0)));
final String match = matcher.group(1);
if (this.logger.isTraceEnabled()) {
this.logger.trace("[THYMELEAF][{}] Applying javascript variable inline evaluation on \"{}\"", TemplateEngine.threadIndex(), match);
}
IStandardExpression expression = null;
try {
expression = expressionParser.parseExpression(configuration, arguments, match);
} catch (final TemplateProcessingException ignored) {
// If it is not a standard expression, just output it as original
strBuilder.append(SCRIPT_INLINE_PREFIX).append(match).append(SCRIPT_INLINE_SUFFIX);
}