Closed clsource closed 4 years ago
Thank you for noticing this.
This is happening because there was a major change to the API.
Instead of
img`w-full`;
It is now:
img.class`w-full`;
I made this change because I learned from experience working with Webscript that it is better for it to work consistently.
Tagged Template Literal syntax is another way to call a function with strings.
So for example these two produce the same result:
p`This is a paragraph`;
p("This is a paragraph");
I don't expect such major changes to the API to happen anymore.
Using the code from the latest version the example throws error.
test/app.js
This seems to be related to the new
webscript
implementation since it returns a rendered version on the first callreturns
<img>
if we change the
webscript
to version 0.04Then executing
returns
Proxy