<div dir="ltr"><div class="gmail_extra">Hi Satya,</div><div class="gmail_extra"><br></div><div class="gmail_extra">It is quite easy. Here is a quick example for what you mentioned. </div><div class="gmail_extra"><br></div><div class="gmail_extra">If you have an array in flask with an undetermined number of options that you want to use in your dropdown:</div><div class="gmail_extra"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">my_options = ['option1', 'option2', 'option3', 'option4']</blockquote><div><br></div><div>You can generate your html dropdown in Jinja like this:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><select><br>    {% for option_name in my_options %}<br>    <option>{{option_name}}</option><br>    {% endfor %}<br></select></blockquote><div><br></div><div>In my opinion, I think it is not difficult to learn Jinja and it integrates well if you are also learning Flask at the same time.</div><div><br></div><div>Regards,</div><div>Alejo</div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><br></div><div class="gmail_quote">On 14 April 2016 at 13:42, Satya Elipe <span dir="ltr"><<a href="mailto:satya.elipe@gmail.com" target="_blank">satya.elipe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Alejo<div><br></div><div>Thanks for the prompt response and for the useful info.</div><div><br></div><div>Got it. So if I want to build up a web app (mostly for static info, with drop down boxes), how easy or difficult it is to use jinja ?</div><div><br></div><div>In general how easy it is to learn jinja for a new comer like me in web development (I heard jinja is powerful with its powerful library and inheritance, hence through of picking it up for my career on web development).</div><div><br></div><div>Kindly advise. </div><div><br></div><div>Sure, will take a look at below pointers. </div><div><br></div><div>Thanks</div><span><font color="#888888"><div>Satya</div></font></span><div><div><div><br></div><div><br></div><div><br></div><div>On Thursday, 14 April 2016, Alejo Arias <<a href="mailto:alejoar@gmail.com" target="_blank">alejoar@gmail.com</a>> wrote:</div><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello Satya,<div><br></div><div>Jinja is a templating language and there are no "default" templates as far as I know. It is like asking for a "default" flask application. I guess what you are really asking for might be a "hello world" flask application that uses Jinja.</div><div><br></div><div>There are several guides to learn how to use Jinja with examples that you can find googling a bit. Here's one: <a href="https://realpython.com/blog/python/primer-on-jinja-templating/" target="_blank">https://realpython.com/blog/python/primer-on-jinja-templating/</a></div><div><br></div><div>In that tutorial they use Bootstrap with Jinja, which might be closer to what you were looking for if you assume Bootstrap as a default template.<br></div><div><br></div><div>Miguel Gringberg's flask book also guides you through using Jinja with bootstrap, I recommend reading it.</div><div><br></div><div>Hope that helps.<br></div><div><br></div><div>Regards,</div><div>Alejo</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 April 2016 at 12:41, Satya Elipe <span dir="ltr"><<a>satya.elipe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello<div><br></div><div>I'm new to flask web development.</div><div><br></div><div>Just wondering if there's any default templates available in ninja2 that I can just import and use ?</div><div><br></div>Also would be great if some one comment on the best way to use those default templates.<div><br></div><div>Just want to give it a try with default templates rather than start creating my own to begin with.</div><div><br></div><div>Thanks in anticipation</div><span><font color="#888888"><div>Satya</div>
</font></span><br>_______________________________________________<br>
Flask mailing list<br>
<a>Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
<br></blockquote></div><br></div>
</blockquote></div>
</div></div></div></div>
</blockquote></div><br></div></div>