Menu icon Foundation

My Posts

  • 4
    Replies
  • Panini - unable to get partials to work

    By John Egan

    Partials

    Hi - I'm using the default Foundation for Emails template, following the tutorials. I want to create a reusable header and footer for my project, so I created a basic header.html and footer.html file in the /src/partials/ directory. Then, I'm editing the ... (continued)

    Last Reply by John Egan about 3 years ago


My Comments

John Egan commented on John Egan's post about 3 years

I found the problem: the documentation for partials on http://foundation.zurb.com/emails/docs/panini.html
 
There is a syntax error in the documentation:
<html>
<head>
<title>Definitely STILL an Email!</title>
</head>
<body>
{{> header}
{{> body}}
{{> footer}}
</body>
</html>
the header partial is missing the closing brace. I can't believe I missed that :(
 

John Egan commented on John Egan's post about 3 years

http://pastebin.com/BVQMkZCp - here's an error I get when I first start Gulp. things are sort of working, I just can't load any partials out of the layouts/default.html file.

John Egan commented on John Egan's post about 3 years

Thanks Rafi - I've cleared out the content for each of the partial files (previously, they only had a simple HTML comment). Unfortunately, I still get the same error.
npm-debug.log file - here's the error log I get. Hopefully, you can spot something there.
 
thanks again for the help!

Posts Followed

No Content

Following

    No Content

Followers

My Posts


My Comments

You commented on John Egan's post about 3 years

I found the problem: the documentation for partials on http://foundation.zurb.com/emails/docs/panini.html
 
There is a syntax error in the documentation:
<html>
<head>
<title>Definitely STILL an Email!</title>
</head>
<body>
{{> header}
{{> body}}
{{> footer}}
</body>
</html>
the header partial is missing the closing brace. I can't believe I missed that :(
 

You commented on John Egan's post about 3 years

http://pastebin.com/BVQMkZCp - here's an error I get when I first start Gulp. things are sort of working, I just can't load any partials out of the layouts/default.html file.

You commented on John Egan's post about 3 years

Thanks Rafi - I've cleared out the content for each of the partial files (previously, they only had a simple HTML comment). Unfortunately, I still get the same error.
npm-debug.log file - here's the error log I get. Hopefully, you can spot something there.
 
thanks again for the help!

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content