-
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
Does jSmart support include and extends? #13
Comments
Yes, I also met the same problem.How can I fix this ? |
Can you share your code please? |
I think this issue arises because we try to give path relative to the current template while jSmart expects it to be relative to the project. I fixed it by using the code below to over-ride the default include method. I could do this since I had a very simple Project structure where src/templates/pages contained the current template and src/templates/components contained the template to be included in the current template. I hope this helps. P.S.: I had to write this code in a place where i had access to variable called file which is the path to the current template. jSmart.prototype.registerPlugin( }); |
This has been fixed in the release v2.15.1 |
It seems that getTemplate method always return throwing an error.
The text was updated successfully, but these errors were encountered: