Skip to content
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

async plugins and async/stream'n'pipe in general #1

Open
oleics opened this issue Jul 28, 2012 · 0 comments
Open

async plugins and async/stream'n'pipe in general #1

oleics opened this issue Jul 28, 2012 · 0 comments

Comments

@oleics
Copy link

oleics commented Jul 28, 2012

Hallo,

first of all: Awesome! Finally a port of Smarty for node. Thank you.

I have some questions:

Lets say i have this:

var tpl = nsmarty.assign('test.tpl', $arr)
tpl.on('data', function(chunk) {
})

Is chunk really a small chunk, or is it always the rendered template as a whole? Respective: Is the data-event fired more than once, or does it fire only once?

And what about async plugins? Are they supported? And if they are, is the output of the plugin buffered and emited as a whole, or is the output small chunks too?

To break the above down into one question: Does NSmarty support asynchronous programming style and the stream-api of nodejs to the fullest?

Regards, Oliver.

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

No branches or pull requests

1 participant