<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Jinja2 Template Design Principles in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/jinja2-template-design-principles/m-p/4637077#M1083</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used Jinja in some script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here some stuff that i used:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I use dictionnary to pass Data to the template ==&amp;gt; It's simplify thing because you have to add your new element to dictionnary then just use it in your template otherwise if you pass directly variable you have to modify it 3 times ..&lt;/LI&gt;&lt;LI&gt;You have to check how you want to deal with whitespace &amp;amp; newline break&lt;/LI&gt;&lt;LI&gt;You have to check how you want to deal&amp;nbsp; with variable that has&amp;nbsp; None as value. Do you want to pass None or just replace by empty string for exemple&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here a&amp;nbsp;&lt;A href="https://sites.google.com/a/chromium.org/dev/developers/jinja" target="_blank" rel="noopener"&gt;Link that might help you&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 03:18:27 GMT</pubDate>
    <dc:creator>Nabsch</dc:creator>
    <dc:date>2022-06-23T03:18:27Z</dc:date>
    <item>
      <title>Jinja2 Template Design Principles</title>
      <link>https://community.cisco.com/t5/controllers/jinja2-template-design-principles/m-p/4633810#M1082</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I wondered if one of you could share some Jinja2 Template design principles (What to do / What not to do) please ?&lt;/P&gt;&lt;P&gt;Any link would be appreciated !&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jerems&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 13:35:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/jinja2-template-design-principles/m-p/4633810#M1082</guid>
      <dc:creator>Jerems</dc:creator>
      <dc:date>2022-06-17T13:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Jinja2 Template Design Principles</title>
      <link>https://community.cisco.com/t5/controllers/jinja2-template-design-principles/m-p/4637077#M1083</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used Jinja in some script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here some stuff that i used:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I use dictionnary to pass Data to the template ==&amp;gt; It's simplify thing because you have to add your new element to dictionnary then just use it in your template otherwise if you pass directly variable you have to modify it 3 times ..&lt;/LI&gt;&lt;LI&gt;You have to check how you want to deal with whitespace &amp;amp; newline break&lt;/LI&gt;&lt;LI&gt;You have to check how you want to deal&amp;nbsp; with variable that has&amp;nbsp; None as value. Do you want to pass None or just replace by empty string for exemple&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here a&amp;nbsp;&lt;A href="https://sites.google.com/a/chromium.org/dev/developers/jinja" target="_blank" rel="noopener"&gt;Link that might help you&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 03:18:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/jinja2-template-design-principles/m-p/4637077#M1083</guid>
      <dc:creator>Nabsch</dc:creator>
      <dc:date>2022-06-23T03:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Jinja2 Template Design Principles</title>
      <link>https://community.cisco.com/t5/controllers/jinja2-template-design-principles/m-p/4641391#M1084</link>
      <description>&lt;P&gt;Hi Nabasch,&lt;/P&gt;&lt;P&gt;Thanks a lot for your hints and support as well as for the provided link.&lt;/P&gt;&lt;P&gt;Jerems&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 08:10:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/jinja2-template-design-principles/m-p/4641391#M1084</guid>
      <dc:creator>Jerems</dc:creator>
      <dc:date>2022-06-30T08:10:48Z</dc:date>
    </item>
  </channel>
</rss>

