Menu icon Foundation
Custom data not working

Has anyone else experience custom data not working? 

 

http://foundation.zurb.com/emails/docs/panini.html#custom-data

 

I kept digging until I added data: src/data to the panini task in gulpfile.babel.js and from there on it started working. 

Am I missing the obvious "You need to add this to babel..." documentation? I found no reference of this. 

datacustom datagulp

Has anyone else experience custom data not working? 

 

http://foundation.zurb.com/emails/docs/panini.html#custom-data

 

I kept digging until I added data: src/data to the panini task in gulpfile.babel.js and from there on it started working. 

Am I missing the obvious "You need to add this to babel..." documentation? I found no reference of this. 

Corey Schaaf about 3 years ago

There is very little documentation on this. I actually found answers on the Forum. The only documentation I found about it is here: 

http://foundation.zurb.com/emails/docs/panini.html

Ahmet Ayabil about 3 years ago

Is it possible to use multiple Text lines in a Global Variabel ( http://foundation.zurb.com/forum/posts/43212-global-variables ) or things like HTML?

Corey Schaaf about 3 years ago

Ah @zeb - I totally forgot that I wrote an answer to a similar post. I showed how I setup my data file and how I used a .yml file to hold multiple variables as well as how to reference those variables in the .yml file. 

You can find that posting here: 

http://foundation.zurb.com/forum/posts/43584-handlebars-img-src-depending-on-test-or-production

Ahmet Ayabil almost 3 years ago

Does anyone have an idea or indication of whether Multiline Text would be possible?