Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
fooing
Browse files Browse the repository at this point in the history
  • Loading branch information
paultag committed Apr 15, 2013
1 parent f44b532 commit 18f6925
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1 +1,3 @@
static/
*swp
*pyc
15 changes: 10 additions & 5 deletions Makefile
@@ -1,6 +1,7 @@
STATIC = static
STATIC_CSS = $(STATIC)/css
STATIC_JS = $(STATIC)/js
STATIC_CSS = $(STATIC)/css
STATIC_IMGS = $(STATIC)/imgs


all: hello deps build
Expand All @@ -10,7 +11,7 @@ hello:
@cowsay 'Welcome to Hy!'


build: clean css js
build: clean css js imgs


css: less
Expand All @@ -20,6 +21,8 @@ css: less
js: coffee
cp -rv js/* $(STATIC_JS)

imgs:
cp -rv imgs/* $(STATIC_IMGS)

less:
make -C less
Expand All @@ -32,17 +35,19 @@ coffee:


clean:
rm -fr $(STATIC_CSS) $(STATIC_JS)
mkdir -p $(STATIC_CSS) $(STATIC_JS)
rm -fr $(STATIC_CSS) $(STATIC_JS) $(STATIC_IMGS)
mkdir -p $(STATIC_CSS) $(STATIC_JS) $(STATIC_IMGS)


devel:
@./devel.sh


deps:
set -e; for x in $(shell cat dependencies); do \
echo "Checking for dependency: $$x"; \
dpkg-query -s $$x >/dev/null 2>&1; \
done;

.PHONY: build clean less coffee devel

.PHONY: build clean less coffee devel imgs
5 changes: 3 additions & 2 deletions app.hy
Expand Up @@ -22,8 +22,9 @@
(defn err [msg] (make-response msg 500))


; view routes
(route index "/" [] (render-template "repl.html"))
(route index "/" [] (render-template "index.html"))
(route repl "/repl" [] (render-template "repl.html"))


(post-route hy2py "/hy2py" []
(try
Expand Down
Binary file added imgs/hy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion less/layout.less
Expand Up @@ -13,8 +13,14 @@
body, html {
height: 100%;
color: #000000;
font-family: monospace;
.reset;
.sans-serif;
}

.content {
width: 800px;
margin-left: auto;
margin-right: auto;
}

a {
Expand Down
21 changes: 3 additions & 18 deletions templates/index.html
Expand Up @@ -5,21 +5,6 @@
{% block head %}
{% endblock %}

{% block content %}
<h1>Hi, Welcome to Hy!</h1>

<p>
Hy is a special Lisp langage. It compiles into a Python AST, and allows for
some pretty awesome stuff (like writing Flask or Django apps in Lisp).
</p>
<p>
It's got an extremely simple Macro system, which will hopefully become
a bit more advanced as the language develops.
</p>
<p>
<a href="https://hy.readthedocs.org/en/latest/" title="Hy Documentation">Read the docs</a> to learn more.
</p>
<p>
Want to try it out? Flip on JavaScript and try out the <a href="/repl" >REPL</a>
</p>
{% endblock %}
{% block content %}<div class = 'content' >
<img src = "{{url_for("static", filename="imgs/hy.png")}}" alt = "" />
</div>{% endblock %}

0 comments on commit 18f6925

Please sign in to comment.