File tree Expand file tree Collapse file tree
src/main/java/com/hubspot/jinjava Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com .hubspot .jinjava .lib .expression ;
2+
3+ import com .hubspot .jinjava .interpret .JinjavaInterpreter ;
4+ import com .hubspot .jinjava .tree .output .RenderedOutputNode ;
5+ import com .hubspot .jinjava .tree .parse .ExpressionToken ;
6+
7+ public class EagerExpressionStrategy implements ExpressionStrategy {
8+
9+ @ Override
10+ public RenderedOutputNode interpretOutput (
11+ ExpressionToken master ,
12+ JinjavaInterpreter interpreter
13+ ) {
14+ return null ; // TODO replace with actual functionality
15+ }
16+ }
Original file line number Diff line number Diff line change 11package com .hubspot .jinjava .mode ;
22
33import com .hubspot .jinjava .interpret .Context ;
4+ import com .hubspot .jinjava .lib .expression .EagerExpressionStrategy ;
45import com .hubspot .jinjava .lib .tag .eager .EagerTagDecorator ;
56import com .hubspot .jinjava .lib .tag .eager .EagerTagFactory ;
67import java .util .Optional ;
@@ -21,6 +22,6 @@ public void prepareContext(Context context) {
2122 .map (tag -> EagerTagFactory .getEagerTagDecorator (tag .getClass ()))
2223 .filter (Optional ::isPresent )
2324 .forEach (maybeEagerTag -> context .registerTag (maybeEagerTag .get ()));
24- // TODO prepare expression node
25+ context . setExpressionStrategy ( new EagerExpressionStrategy ());
2526 }
2627}
You can’t perform that action at this time.
0 commit comments