BorisMoore / jsrender

A lightweight, powerful and highly extensible templating engine. In the browser or on Node.js, with or without jQuery.
http://www.jsviews.com
MIT License
2.67k stars 339 forks source link

swig.renderFile gives callback function required error #367

Closed GhadaAJIMI closed 2 years ago

GhadaAJIMI commented 2 years ago

Hi, I'm using swig to send an email, It was working just fine but now it doesn't and it tells me callback function required here my code: tempsnip tempsnip2

BorisMoore commented 2 years ago

I'm not familiar with swig. But you say it was working and then started to give the message about needing a callback function. So what did you change between before and after? Sounds like it is not a JsRender problem, since it worked before. (Unless you moved to a more recent version of JsRender. Were you on the latest version both before and after the change?).

GhadaAJIMI commented 2 years ago

I remember I added the config folder with the default.json file. I removed them but it still doesn't work so I don't know why

BorisMoore commented 2 years ago

OK. Closing this for now, since it doesn't look like it is a JsRender issue. You can open it again if you are able to identify a JsRender-related problem.