Skip to content

Commit 482c907

Browse files
Half-heartedly decide towards not supporting standard tag dynamization
1 parent e12575f commit 482c907

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ng-appserver/src/main/java/ng/appserver/templating/parser/NGTemplateParser.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -236,16 +236,16 @@ else if( currentBuffer == valueBuffer ) {
236236

237237
String elementType = elementTypeBuffer.toString();
238238

239-
if( elementType.startsWith( NGHTMLParser.WO_REPLACEMENT_MARKER ) ) {
240-
// Acts only on tags, where we have "dynamified" inside the tag parser
241-
// this takes the value found after the "wo:" part in the element and generates a WOGenericContainer with that value
242-
// as the elementName binding
243-
244-
// FIXME: Fix up in "New parser world"
245-
// elementType = elementType.replaceAll( NGHTMLParser.WO_REPLACEMENT_MARKER, "" );
246-
// bindings.put( "elementName", new NGBindingValue( true, elementType ) );
247-
// elementType = NGGenericContainer.class.getSimpleName();
248-
}
239+
// CHECKME: We're probably not going to support this feature. Old parser code kept around for reference // Hugi 2025-03-19
240+
// if( elementType.startsWith( NGHTMLParser.WO_REPLACEMENT_MARKER ) ) {
241+
// Acts only on tags, where we have "dynamified" inside the tag parser
242+
// this takes the value found after the "wo:" part in the element and generates a WOGenericContainer with that value
243+
// as the elementName binding
244+
245+
// elementType = elementType.replaceAll( NGHTMLParser.WO_REPLACEMENT_MARKER, "" );
246+
// bindings.put( "elementName", new NGBindingValue( true, elementType ) );
247+
// elementType = NGGenericContainer.class.getSimpleName();
248+
// }
249249

250250
final String declarationName = "%s_%s".formatted( elementType, nextInlineBindingNumber );
251251
return new NGDeclaration( true, declarationName, elementType, bindings );

0 commit comments

Comments
 (0)