Webcounter helpers not working
nonameplum opened this issue · 1 comments
nonameplum commented
Hi,
I created empty total.js project and try to use helper webcounter methods to show counter value in homepage.html like this:
@{meta('title', 'description', 'keywords')}
@{visitors()}
<div>Hello world!</div>
Total.js is returning error:
default ---> SyntaxError: Unexpected token ) ([object Object]) SyntaxError: Unexpected token )
When I change @{visitors()}
to @{visitors('')}
then it is working.
I do not know whether this is the fault of wrong implementation or documentation.
Best regards.
petersirka commented
Hi @nonameplum,
I found a problem in framework view engine (I fixed it). So module works without problems but you must download a latest version from GitHub. This version is release candindate.
Thanks!