Description:
Implement the logic within the parse5 processor to differentiate between standard HTML tags and neo.mjs component tags based on the convention defined in the Syntax Specification.
Implementation Details:
- When traversing the
parse5 AST, check the tag name of each element.
- If the tag name follows the component convention (e.g., starts with a capital letter), generate a VDOM object with a
module or className property pointing to the corresponding component class.
- If it's a standard HTML tag, generate a standard VDOM object with a
tag property.
- A mechanism will be needed to resolve the string name (e.g., "GridContainer") to the actual class constructor (
GridContainer) at runtime. This may involve a component registry or passing a scope object to the template processor.
Description: Implement the logic within the
parse5processor to differentiate between standard HTML tags and neo.mjs component tags based on the convention defined in the Syntax Specification.Implementation Details:
parse5AST, check the tag name of each element.moduleorclassNameproperty pointing to the corresponding component class.tagproperty.GridContainer) at runtime. This may involve a component registry or passing a scope object to the template processor.