diff --git a/articles/__init__.py b/articles/__init__.py index 852fbec..0ccbfe8 100644 --- a/articles/__init__.py +++ b/articles/__init__.py @@ -9,6 +9,10 @@ bloop = Blueprint("articles", __name__, template_folder="") def main_page(): return render_template("project_list.html") +@bloop.route("/a//") +def apply_base_template(page_name): + file_name = os.path.join(folder, page_name.replace("-", "_")) + @bloop.route("//") def render_article(page_name): # Arguably, the various options for how to render (templates, articles, flat html) could be stuck into various subdirectories. diff --git a/articles/article.template.html b/articles/article.template.html index 4f00453..2efba9f 100644 --- a/articles/article.template.html +++ b/articles/article.template.html @@ -3,7 +3,7 @@ {% block head %} - How should this website be laid out? + {% block title %}Writings by Shoofle{% endblock %} diff --git a/static/text_editor.html b/static/text_editor.html new file mode 100644 index 0000000..278e33f --- /dev/null +++ b/static/text_editor.html @@ -0,0 +1,189 @@ + + + + + A smart, organizing text editor + + + + + + + +
+ + +When I see the text "if (something)", then I should make a new if block. + +["block", "block"] => ["block"] +["block", "block while"] => ["block", "block while"] +["block", "block if"] => ["block", "block if"] + + +
+
+ some kind of preparation code, I guess + or something +
+
+
+
if (condition)
+
do something in response to a true condition
+
+
+
else if (some other condition)
+
then we should do something specific else
+
+
+
else
+
some fallback thing!
+
+
+
+ some code + do other thing + {} | : {} (); +
+
+
while (something)
+
+ update the counters + hack the gibsons + do the stuff +
+
+
+ + + + +



















+
+
+ +
+ +

+
+		
+	
+