|Juliana Rat 0fb2691b1a||2 months ago|
|static||2 months ago|
|templates||2 months ago|
|.gitignore||2 months ago|
|LICENSE.md||2 months ago|
|README.md||2 months ago|
|app.hy||2 months ago|
|blog.hy||2 months ago|
|editor.hy||2 months ago|
|freeze.hy||2 months ago|
|requirements.txt||2 months ago|
|setup-flask||2 months ago|
|shim.py||2 months ago|
I've decided to switch back to using pure Python for my website. Hy is a cool idea, but because it's still Python, it lacks the computational elegance of Lisp without the syntactical elegance of Python. Plus, writing anything in Hy requires cross-referencing both Python and Hy documentation, especially when strange syntax errors appear.
The maintained version of the website is now here
This is the source code for my personal website and blog. It's written using Flask in Hy, a Lisp which compiles to Python AST, thence to Python bytecode. Yep, plain old Flask, written in a Lisp! Neat, huh?
If, for some reason, you wish to run this website locally,
first make sure you have the requirements in
At the time of writing, the version of Hy used is not in PyPI;
in order to get it, you will have to pull it from the git repository
pip install git+https://firstname.lastname@example.org.
This should be correct in the requirements file.
source setup-flask then
flask run. All together:
git clone https://github.com/Marie-Joseph/hy-website.git cd hy-website pip install -r requirements.txt source setup-flask flask run
In addition to being a Flask app, the simplicity of this website makes it a
logical choice for static generation. As such, URL conventions are adjusted to
allow frozen-flask to generate a
static version. That's why
freeze.hy is for. To generate a static version,
one would simply run:
git clone https://github.com/Marie-Joseph/hy-website.git cd hy-website pip install -r requirements.txt hy freeze.hy
The resultant files are in the new