My website, which is written using Flask from Hy.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
J. Sims bfe5959061 Add archival information 9 months ago
static Fixup static build and adjust text 1 year ago
templates posts: fix edgecase | editor: cleanup 10 months ago
.gitignore Ensure commit message files aren't tracked 1 year ago
LICENSE.md Initial commit 1 year ago
README.md Add archival information 9 months ago
app.hy Fixup static build and adjust text 1 year ago
blog.hy Fixup static build and adjust text 1 year ago
editor.hy posts: fix edgecase | editor: cleanup 10 months ago
freeze.hy Adjust for frozen-flask 1 year ago
requirements.txt Update README, correct requirements.txt 1 year ago
setup-flask Initial commit 1 year ago
shim.py Initial commit 1 year ago

README.md

ARCHIVED

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

Trees' Street

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?

Running

If, for some reason, you wish to run this website locally, first make sure you have the requirements in requirements.txt. 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 like so: pip install git+https://github.com/hylang/hy.git@1.0a1. This should be correct in the requirements file. Then, run 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

Building

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 build directory.