Skip to content

Conversation

jessepav
Copy link

Add an outputFunctionName config property, which defaults to output, that behaves like EJS's outputFunctionName.

Closes #284

@jessepav jessepav changed the title Add outputFunctionName config property feat: Add outputFunctionName config property Sep 20, 2025
@jessepav jessepav force-pushed the output-function branch 2 times, most recently from 502bc08 to 8a40757 Compare September 20, 2025 17:56
@bgub
Copy link
Owner

bgub commented Oct 3, 2025

@jessepav looks good! Could you change it to be all on one line to reduce generated template size?

function ${config.outputFunctionName}(s){__eta.res+=s;}

@jessepav
Copy link
Author

jessepav commented Oct 3, 2025

All set – output function is now on one line.

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.

Add an Output function (like EJS's outputFunctionName)

2 participants