<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yiftach Beer</title>
    <description>The latest articles on DEV Community by Yiftach Beer (@yiftachbeer).</description>
    <link>https://dev.to/yiftachbeer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1273133%2Fc467c7d9-c10d-4f6a-8b60-28a2a8f2ad11.jpeg</url>
      <title>DEV Community: Yiftach Beer</title>
      <link>https://dev.to/yiftachbeer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yiftachbeer"/>
    <language>en</language>
    <item>
      <title>Dynamic websites with Flask</title>
      <dc:creator>Yiftach Beer</dc:creator>
      <pubDate>Sun, 04 Feb 2024 16:31:47 +0000</pubDate>
      <link>https://dev.to/yiftachbeer/dynamic-websites-with-flask-4mge</link>
      <guid>https://dev.to/yiftachbeer/dynamic-websites-with-flask-4mge</guid>
      <description>&lt;p&gt;I use Python for both work and hobby projects. Some of the projects I create require external access for which I use Flask, for example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a minimalistic UI that allows someone to go over some items and give feedback over them (I use Flask to display each in its own page)&lt;/li&gt;
&lt;li&gt;allowing me to call some function on my computer (e.g. play a sound) from my phone (I wrap my function in a Flask route)&lt;/li&gt;
&lt;li&gt;etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Flask seems great for when each of these pages is static. However, if some need arises and I need to make them dynamic (e.g. checking some checkbox makes some component visible), I'm not sure what today's best practice is. Flask does give me the option to use javascript as part of the templates it displays, but using plain javascript seems outdated - the proper way to build reactive pages is using React/Angular etc. But when these are combined with Flask, tutorials I've seen suddenly assume you only use Flask as an API (just returning JSON data) and not as a proper server, which seems like a small addition requiring a large overhaul.&lt;/p&gt;

&lt;p&gt;Which setups work for you for making Flask pages display dynamic pages?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>flask</category>
      <category>python</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
