Menu icon Foundation
Debugging {{#each}} in Panini

Is there a way to determine why an {{#each}} loop is not being populated in Panini? 

I have a .yml file in my src/data directory which is referencing version numbers of Outlook:

In my layouts/default.html file, I have the following code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<link rel="stylesheet" type="text/css" href="css/app.css">
		
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width">
		
		<title>{{subject}}</title>
		
		<!-- <style> -->
		
		{{#each outlook}}
		<!--[if gte mso {{ this }} ]>
		    <style type="text/css">
		    /* Your Outlook-specific CSS goes here. */
		    </style>
		<![endif]-->
		{{/each}}
	</head>
	
	<body>
		<span class="preheader">{{description}}</span>
		
		<table class="body">
			<tr>
				<td class="center" align="center" valign="top">
					<center>
						{{!-- Pages you create in the src/pages/ folder are inserted here when the flattened emails are created. --}}
						{{> body}}
					</center>
				</td>
			</tr>
		</table>
	</body>
</html>

 

Is there something I am missing? If so, how can I see this to debug?

 

Thanks much!

 

paninidebugeachloopOutlookversions

Is there a way to determine why an {{#each}} loop is not being populated in Panini? 

I have a .yml file in my src/data directory which is referencing version numbers of Outlook:

In my layouts/default.html file, I have the following code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<link rel="stylesheet" type="text/css" href="css/app.css">
		
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width">
		
		<title>{{subject}}</title>
		
		<!-- <style> -->
		
		{{#each outlook}}
		<!--[if gte mso {{ this }} ]>
		    <style type="text/css">
		    /* Your Outlook-specific CSS goes here. */
		    </style>
		<![endif]-->
		{{/each}}
	</head>
	
	<body>
		<span class="preheader">{{description}}</span>
		
		<table class="body">
			<tr>
				<td class="center" align="center" valign="top">
					<center>
						{{!-- Pages you create in the src/pages/ folder are inserted here when the flattened emails are created. --}}
						{{> body}}
					</center>
				</td>
			</tr>
		</table>
	</body>
</html>

 

Is there something I am missing? If so, how can I see this to debug?

 

Thanks much!