-
Notifications
You must be signed in to change notification settings - Fork 12
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
export render function #6
Comments
Which is the difference between this exported function and the one you suggests?:
|
i prefer to separate module options and render data |
Sorry, I didn't see the parameters from the example. I can make a wrapper class as you said with a metod that allows you to extends the language and to render a file and also a static method that performs all-in-one without being able to extend anything. |
wrapper is a good idea, but you alse can add methods in wrapper like setTemplateParser() (aka depenpency injection pattern) |
I agree of exporting that low level api, would be easier to integrate the templating engine with other nodejs web frameworks (like protos) that don't depend on connect or express :) |
It would be nice to do smth like this:
or
The text was updated successfully, but these errors were encountered: