<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ezcms.git/server.py, branch mjfer.net</title>
<subtitle>Basic flask app I made to serve mjfer.net
</subtitle>
<id>https://git.mjfer.net/ezcms.git/atom?h=mjfer.net</id>
<link rel='self' href='https://git.mjfer.net/ezcms.git/atom?h=mjfer.net'/>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/'/>
<updated>2022-02-25T22:41:46Z</updated>
<entry>
<title>Merge server changes from branch master</title>
<updated>2022-02-25T22:41:46Z</updated>
<author>
<name>mjfernez</name>
<email>mjf@mjfer.net</email>
</author>
<published>2022-02-25T22:41:46Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=b7333699e61837793e128ae0628ac6b0b111e6dd'/>
<id>urn:sha1:b7333699e61837793e128ae0628ac6b0b111e6dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixes is_hidden_path, RSS. Adds txt support, RSS</title>
<updated>2021-10-18T23:53:03Z</updated>
<author>
<name>mjfernez</name>
<email>mjf@mjfer.net</email>
</author>
<published>2021-10-18T23:53:03Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=7c16beb6538ccf024b552d475a26b9345bf550ec'/>
<id>urn:sha1:7c16beb6538ccf024b552d475a26b9345bf550ec</id>
<content type='text'>
This commit fixes the is_hidden_path function to work for subdirectories
and also remove entries from the RSS file

view_functions.py has been refactored use the siteconfig
file instead of the app to remove unecessary imports and avoid
circularly imports

This also moves logic for the default site directories from server.py to
siteconfig.py so it's accessible before the app runs. This has the
benefit of cleaning up the server file, but the drawback of adding the
os import to the siteconfig file. Settings have been moved around for
(hopefully) easier reading
</content>
</entry>
<entry>
<title>Turns off jinja caching. Fixes appropriate cache</title>
<updated>2021-10-16T22:20:46Z</updated>
<author>
<name>mjfernez</name>
<email>mjfernez@gmail.com</email>
</author>
<published>2021-10-16T22:20:46Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=04431658597c9b9ae489be3363c6b9478d946fcd'/>
<id>urn:sha1:04431658597c9b9ae489be3363c6b9478d946fcd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adds RSS auto-generation for files in 'site'</title>
<updated>2021-10-15T00:14:53Z</updated>
<author>
<name>mjfernez</name>
<email>mjfernez@gmail.com</email>
</author>
<published>2021-10-15T00:14:53Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=c583a69362f86fcc8e1b35a45a06dd8377d6308f'/>
<id>urn:sha1:c583a69362f86fcc8e1b35a45a06dd8377d6308f</id>
<content type='text'>
This commit adds rss_generator.py which contains the main logic for
indexing the site directory and generating a feed on startup. It serves
as a sort of ad-hoc database which is accessed when /feed.xml is
requested.

Also corrects various typos, README nonsense, and expands the config
options for RSS. Instances of './templates/site' have been replaced with
the general BASE_DIR variable in the siteconfig.
</content>
</entry>
<entry>
<title>Improve README. Expanded cache config</title>
<updated>2021-10-11T03:05:07Z</updated>
<author>
<name>mjfernez</name>
<email>mjfernez@gmail.com</email>
</author>
<published>2021-10-11T03:05:07Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=f7668243b7a55d1f69d508b3baaf891055715f63'/>
<id>urn:sha1:f7668243b7a55d1f69d508b3baaf891055715f63</id>
<content type='text'>
This commit removes a lot of unnecessary rambling from the README
and also makes it easier to use more complex cache options if you want
to
</content>
</entry>
<entry>
<title>Caching support. Separate views.py in 2 files</title>
<updated>2021-10-11T02:15:07Z</updated>
<author>
<name>mjfernez</name>
<email>mjfernez@gmail.com</email>
</author>
<published>2021-10-11T02:15:07Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=02a37ad308fbcc27a04787c84a76de7c2936a6d5'/>
<id>urn:sha1:02a37ad308fbcc27a04787c84a76de7c2936a6d5</id>
<content type='text'>
This commit adds the Flask-Caching module to the software stack and
enables the caching of views in a wide variety of ways, but implemented
here to be simple to understand to someone new to the concept of caching
(aka me).

Various documentation and formatting was applied to all files. views.py
internal functions (mostly related to filesystem operations of the
server). have been moved into view_functions.py
</content>
</entry>
<entry>
<title>Adds gzip support by default</title>
<updated>2021-10-07T01:47:10Z</updated>
<author>
<name>mjfernez</name>
<email>mjfernez@gmail.com</email>
</author>
<published>2021-10-07T01:47:10Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=a800163aeae0998fa49f011664f32a6c348db886'/>
<id>urn:sha1:a800163aeae0998fa49f011664f32a6c348db886</id>
<content type='text'>
This commit adds Flask-Compress to the stack, an excellent module that
makes the site load faster. This also adds and amends the default
siteconfig
</content>
</entry>
<entry>
<title>Clarify siteconfig</title>
<updated>2021-08-26T00:05:00Z</updated>
<author>
<name>mjfernez</name>
<email>mjfernez@gmail.com</email>
</author>
<published>2021-08-26T00:05:00Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=6ddd97e1c39f55fe60fca093ca4fe610eca6d462'/>
<id>urn:sha1:6ddd97e1c39f55fe60fca093ca4fe610eca6d462</id>
<content type='text'>
This clarifies what the MAIN_SITE_DIRS option means since one might
read it to mean you can put your directories anywhere. Not so, you can
only pick which dirs are displayed with that option.

Also recommends to not use the secret key unless needed (for what
reason, I don't know).
</content>
</entry>
<entry>
<title>hotfix: allowed hiddent top site dirs</title>
<updated>2021-06-16T04:20:33Z</updated>
<author>
<name>mjfernez</name>
<email>mjfernez@gmail.com</email>
</author>
<published>2021-06-16T04:20:33Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=03e3f1d478866c68be79adb5d555d8d0d77a312b'/>
<id>urn:sha1:03e3f1d478866c68be79adb5d555d8d0d77a312b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Changed / to /site, added views.py, README amended</title>
<updated>2021-06-16T04:12:00Z</updated>
<author>
<name>mjfernez</name>
<email>mjfernez@gmail.com</email>
</author>
<published>2021-06-16T03:28:40Z</published>
<link rel='alternate' type='text/html' href='https://git.mjfer.net/ezcms.git/commit/?id=945594509e6a19ab0229e9949691e2f7652ea500'/>
<id>urn:sha1:945594509e6a19ab0229e9949691e2f7652ea500</id>
<content type='text'>
Previously this program served files in the 'templates/site' dir on '/',
but this caused problems when accessing raw files using '/raw/' which is
useful for embedding or quickly downloading content. It's also an
inconvenience to the user, since they have to add a word rather than
double-clicking an replacing it.

The main server file and the base and index templates have been changed
to reflect this.

The codebase has been reorganized to separate views from the main flask
app. Blueprints were avoided since only one blueprint would be needed so
thus unnecessary.

README and docstrings were also expanded for clarity and edited for
errors.

Some comments
</content>
</entry>
</feed>
