<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="rss-style.xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Corions Musings</title>
        <link>https://corion.net/blog/tag/blogging/</link>
        <atom:link href="https://corion.net/blog/tag/blogging.rss" rel="self" type="application/rss+xml" />
        <description>Blog feed of Corions Musings</description>
        <generator>Statocles 0.098</generator>
        <item>
            <title>Using make to live-edit statocles posts on update</title>
            <link>https://corion.net/blog/2026/02/22/using-make-to-live-edit-statocles-posts-on-update/</link>
            <guid>https://corion.net/blog/2026/02/22/using-make-to-live-edit-statocles-posts-on-update/</guid>
            <description><![CDATA[
                <p>When I write a blog entry, I usually end in the following loop:</p>

<ol>
<li>Write/update the <code>.markdown</code> file</li>
<li>Regenerate the HTML using <code>statocles build</code>; this regenerates the whole site</li>
<li>Refresh my browser to view the current page</li>
</ol>

<p>Glueing together <a href="https://metacpan.org/pod/Mojo::File::ChangeNotify">Mojo::File::ChangeNotify</a>
and <a href="https://github.com/Corion/App-Mojo-AssetReloader">App::Mojo::AssetReloader</a> and a nice default rule using <code>make</code> for changed files makes updating the browser automatic and somewhat instant.</p>

<h3>The Makefile</h3>

<pre><code>BLOGPOSTS=$(wildcard blog/*/*/*/*/*.markdown)
HTML=$(patsubst %.markdown,.statocles/build/%.html,$(BLOGPOSTS))

all: $(HTML)

%.html: $(patsubst $(patsubst .statocles/build/,,$&lt;),.html,.markdown)
    statocles build
</code></pre>

<p>The main &quot;problem&quot; now is opening the loong URL in the browser
 manually. Having <code>make</code> also work with processes
 ( via <code>/proc/(pid)/cmdline</code> ) is something for a later day.</p>

<p>It would be great if <code>statocles</code> supported building a single page, but
so far, I&#39;ve resolved to rebuilding the whole site every time.</p>


                    <p>Tags:
                        <a href="https://corion.net/blog/tag/perl/">perl</a>
                        <a href="https://corion.net/blog/tag/blogging/">blogging</a>
                    </p>

            ]]></description>
            <pubDate>
                Sun, 22 Feb 2026 00:00:00 +0000
            </pubDate>
        </item>
    </channel>
</rss>

