We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying a first "getting started" page with Template7 but I'm stuck...
What is wrong with the following code ? I get "'Template7' is undefined" error.
All referred js files are accessible, I get no 404 errors, only 200.
<html> <head> <script src="template7.min.js"></script> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <script> $(function() { var template = $("#template").html(); var compiledTemplate = Template7.compile(template); // Error here jQuery.getJSON("http://api.fixer.io/latest", null, function(data) { $("#result").html(compiledTemplate(data)); }); }); </script> </head> <body> <div id="result"></div> <script id="template" type="text/template7"> <p>Base currency: {{base}}</p> </script> </body>
The text was updated successfully, but these errors were encountered:
Are you missing a $ here?? var template = $$('#template').html();
var template = $$('#template').html();
Sorry, something went wrong.
No branches or pull requests
I'm trying a first "getting started" page with Template7 but I'm stuck...
What is wrong with the following code ? I get "'Template7' is undefined" error.
All referred js files are accessible, I get no 404 errors, only 200.
The text was updated successfully, but these errors were encountered: