-
Notifications
You must be signed in to change notification settings - Fork 35
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
fetch returns empty when the same template calls it more than once #11
Comments
Im having the same issue here, all the problems comes with the nocache thing... This is totally stoping me from further development. Is this repo. even maintained ? Either we have to fix the cache template option or provide a way of disable it through the constructor. |
I took a look into it, it should probably be fairly easy to fix: just enable the "nocache" option param when calling getTemplate in the built-in extend parse function: before:
after:
|
Yes, I had the same issue. Thanks @hereandnow |
@salex772: you could use @Avcajaraville's fork https://github.com/Avcajaraville/grunt-jsmart it is at least a little maintained! |
@salex772 The fork @hereandnow is referring is this one --> https://github.com/Avcajaraville/jsmart The other one was a fork for grunt plugin. So far, its doing the job for me, and since we are using it for some development process, whenever we find a missing feature, we will keep enhancing it. |
@Avcajaraville What about UMD and upload these all to npm? |
@salex772 It have also UMD support. About uploading this to npm... yeah, will do that on the next days, since every day there is more people using it. On the meantime, you can add a dependency to your package.json like this:
And then just require it as usually: Hope this helps you. |
No, I prefer to wait for npm version and BTW, it should work with Webpack. |
This has been fixed in the release v2.15.1 |
I call fetch successfully at the first time under nodejs, but after that it always returns empty string. I think there may be bugs due to caching after I read the source of jSmart.
The text was updated successfully, but these errors were encountered: