<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/atom.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Posts tagged: thought</title>
  <id>https://waylonwalker.com/tags/thought/atom.xml</id>
  <updated>2023-08-26T01:03:10Z</updated>
  <subtitle>All posts with the tag &#34;thought&#34;</subtitle>
  <link href="https://waylonwalker.com/tags/thought/" rel="alternate" type="text/html"></link>
  <link href="https://waylonwalker.com/tags/thought/atom.xml" rel="self" type="application/atom+xml"></link>
  <author>
    <name>Waylon Walker</name>
  </author>
  <generator uri="https://github.com/WaylonWalker/markata-go">markata-go</generator>
  <entry>
    <title>💭 &lt;/&gt; htmx ~ Examples ~ Updating Other Content</title>
    <id>https://waylonwalker.com/thought-103/</id>
    <updated>2023-08-26T01:03:10Z</updated>
    <published>2023-08-26T01:03:10Z</published>
    <link href="https://waylonwalker.com/thought-103/" rel="alternate" type="text/html"></link>
    <summary type="text">!https://htmx.org/examples/update-other-content/</summary>
    <content type="html">&lt;div class=&#34;embed-card embed-card-external&#34;&gt;&#xA;  &lt;a href=&#34;https://htmx.org/examples/update-other-content/&#34; class=&#34;embed-card-link&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&#xA;    &lt;div class=&#34;embed-card-content&#34;&gt;&#xA;      &lt;div class=&#34;embed-card-title&#34;&gt;&amp;lt;/&amp;gt; htmx ~ Examples ~ Updating Other Content&lt;/div&gt;&#xA;      &lt;div class=&#34;embed-card-description&#34;&gt;htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypert...&lt;/div&gt;&#xA;      &lt;div class=&#34;embed-card-meta&#34;&gt;htmx.org&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Three ways to support updating other content.  Fantastic article walking through the different ways to update other parts of the screen using htmx.&lt;/p&gt;&#xA;&lt;p&gt;In htmx there is no 2 way data binding, the dom is your state, and if you have elements derived from the same data on the screen in different places you need to think about how to keep them in sync.&lt;/p&gt;&#xA;&lt;div class=&#34;admonition note&#34;&gt;&#xA;&lt;p class=&#34;admonition-title&#34;&gt;Note&lt;/p&gt;&#xA;&lt;p&gt;This post is a [[ thoughts | thought ]]. It’s a short note that I make&#xA;about someone else’s content online #thoughts&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;</content>
    <author>
      <name>Waylon Walker</name>
      <email>hello@waylonwalker.com</email>
      <uri>https://waylonwalker.com</uri>
    </author>
  </entry>
  <entry>
    <title>💭 Bigger Applications - Multiple Files - FastAPI</title>
    <id>https://waylonwalker.com/thought-102/</id>
    <updated>2023-08-24T14:51:23Z</updated>
    <published>2023-08-24T14:51:23Z</published>
    <link href="https://waylonwalker.com/thought-102/" rel="alternate" type="text/html"></link>
    <summary type="text">!https://fastapi.tiangolo.com/tutorial/bigger-applications/#another-module-with-apirouter</summary>
    <content type="html">&lt;div class=&#34;embed-card embed-card-external&#34;&gt;&#xA;  &lt;a href=&#34;https://fastapi.tiangolo.com/tutorial/bigger-applications/#another-module-with-apirouter&#34; class=&#34;embed-card-link&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&#xA;    &lt;div class=&#34;embed-card-image&#34;&gt;&#xA;      &lt;img class=&#34;glightbox&#34; src=&#34;https://fastapi.tiangolo.com/assets/images/social/tutorial/bigger-applications.png&#34; alt=&#34;Bigger Applications - Multiple Files - FastAPI — FastAPI framework, high performance, easy to learn, fast to code, ready for production&#34; loading=&#34;lazy&#34;/ data-glightbox=&#34;description: Bigger Applications - Multiple Files - FastAPI — FastAPI framework, high performance, easy to learn, fast to code, ready for production&#34;&gt;&#xA;    &lt;/div&gt;&#xA;    &lt;div class=&#34;embed-card-content&#34;&gt;&#xA;      &lt;div class=&#34;embed-card-title&#34;&gt;Bigger Applications - Multiple Files - FastAPI&lt;/div&gt;&#xA;      &lt;div class=&#34;embed-card-description&#34;&gt;FastAPI framework, high performance, easy to learn, fast to code, ready for production&lt;/div&gt;&#xA;      &lt;div class=&#34;embed-card-meta&#34;&gt;fastapi.tiangolo.com&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Fastapi lets you tag your &lt;code&gt;APIRouter&lt;/code&gt;’s so that the swagger docs are grouped according to the router.&lt;/p&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;router&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;APIRouter&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;tags&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;router&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;])&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now all routes in &lt;code&gt;router&lt;/code&gt; will appear in the router group in the swagger docs.&lt;/p&gt;&#xA;&lt;div class=&#34;admonition note&#34;&gt;&#xA;&lt;p class=&#34;admonition-title&#34;&gt;Note&lt;/p&gt;&#xA;&lt;p&gt;This post is a [[ thoughts | thought ]]. It’s a short note that I make&#xA;about someone else’s content online #thoughts&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;</content>
    <author>
      <name>Waylon Walker</name>
      <email>hello@waylonwalker.com</email>
      <uri>https://waylonwalker.com</uri>
    </author>
  </entry>
  <entry>
    <title>💭 Custom pages and templates - Datasette documentation</title>
    <id>https://waylonwalker.com/thought-100/</id>
    <updated>2023-08-23T14:37:27Z</updated>
    <published>2023-08-23T14:37:27Z</published>
    <link href="https://waylonwalker.com/thought-100/" rel="alternate" type="text/html"></link>
    <summary type="text">!https://docs.datasette.io/en/stable/custom_templates.html#serving-static-files</summary>
    <content type="html">&lt;div class=&#34;embed-card embed-card-external&#34;&gt;&#xA;  &lt;a href=&#34;https://docs.datasette.io/en/stable/custom_templates.html#serving-static-files&#34; class=&#34;embed-card-link  has-avatar has-avatar-before&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34; style=&#34;--favicon-url: url(&amp;#39;/assets/markata/link-avatars/docs.datasette.io.ico&amp;#39;);&#34; data-favicon=&#34;/assets/markata/link-avatars/docs.datasette.io.ico&#34;&gt;&#xA;    &lt;div class=&#34;embed-card-content&#34;&gt;&#xA;      &lt;div class=&#34;embed-card-title&#34;&gt;Custom pages and templates - Datasette documentation&lt;/div&gt;&#xA;      &lt;div class=&#34;embed-card-meta&#34;&gt;docs.datasette.io&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Datasette has its own static server that can host assets such as style sheets.&lt;/p&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;datasette -m metadata.json --static assets:static-files/ &#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&#34;admonition note&#34;&gt;&#xA;&lt;p class=&#34;admonition-title&#34;&gt;Note&lt;/p&gt;&#xA;&lt;p&gt;This post is a [[ thoughts | thought ]]. It’s a short note that I make&#xA;about someone else’s content online #thoughts&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;</content>
    <author>
      <name>Waylon Walker</name>
      <email>hello@waylonwalker.com</email>
      <uri>https://waylonwalker.com</uri>
    </author>
  </entry>
</feed>