-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stream objects as is during template evaluation instead of stringbuilder and ToString() #562
Comments
Not sure if this is what you're after but you can call |
Thanks for the reply. I tried checking it, but for me it looks like the string conversion is done before passing outout to Output. I might have mistaken, but I couldn’t figure out how to do that without conversion to string. There seems to be some assumptions that the output is string. Write could be something to investigate. |
You have to derive from scriban/src/Scriban/TemplateContext.cs Lines 694 to 702 in 42ad256
This is for example what was done in the kalk project that is using Scriban under the hood: |
Thanks a lot, I'll try that one and report back! |
Is it possible in Scriban to get a stream of objects during template evaluation instead of automatic conversion to a string through the StringBuilder? I would like to receive a stream of strings and other values without string conversion rather than having them aggregated into a single string.
thanks!
The text was updated successfully, but these errors were encountered: