Skip to content

Conversation

@theengineear
Copy link
Collaborator

Only demo / test changes here — it’s not too hard to support this since most (all?) templating engines will accept a native array as input for a set of children.

\${content1} -- \${content2}
</div>
<ul data-id="list">
\${(items ?? []).map(item => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy peasy to test / compare performance of this stuff — we might as well.

assertThrows(callback, expectedMessage, { startsWith: true });
});
//////////////////////////////////////////////////////////////////////////////
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed adding these error-code-block delimiters to the parser tests before. Sneaking them in.

Only demo / test changes here — it’s not too hard to support this since
most (all?) templating engines will accept a native _array_ as input for
a set of children.
@theengineear theengineear force-pushed the add-arrays-to-performance-test branch from 310423d to fe9585f Compare March 6, 2025 23:59
@theengineear theengineear merged commit bae7dab into main Mar 7, 2025
1 check passed
@theengineear theengineear deleted the add-arrays-to-performance-test branch March 7, 2025 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants