Skip to content
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

ch07 Client Side Handlebars; handlebars.compile() error #90

Open
ShahidYousuf opened this issue Dec 21, 2016 · 4 comments
Open

ch07 Client Side Handlebars; handlebars.compile() error #90

ShahidYousuf opened this issue Dec 21, 2016 · 4 comments

Comments

@ShahidYousuf
Copy link

error : nurseryRhymeTemplate is not a function.
When clicked on "Generate nursery rhyme" the browser throws this error and nothing is rendered.
All site files same as stated in the book.

@nhs-webleym
Copy link

I'd refer to the file structure on git. As its not 100% clear from the book what goes where.
I had similar issues.

@ShahidYousuf
Copy link
Author

Yea, I do actually have the same structure myself but I still encounter the error.

@nhs-webleym
Copy link

No. I had difficulties tho. Then I copied the structure and code from the commit and it worked fine.

@QKKQQK
Copy link

QKKQQK commented Apr 3, 2017

Check the #section head and make sure you typed the script src correctly, if there is a typo Handlebars will be undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants