Commit Graph

30 Commits

Author SHA1 Message Date
Christine Dodrill 856f1bb9d5 Run stylish-haskell 2015-07-30 09:31:09 -07:00
Christine Dodrill 8587395399 404 handler should return 404 2015-07-30 09:23:00 -07:00
Christine Dodrill 75f009dade Main: turn some do code into let ... in 2015-07-30 09:22:05 -07:00
Christine Dodrill d427db124f Main: show 404 page if path is not found 2015-07-30 09:09:00 -07:00
Christine Dodrill 0fa42c588c Main: Simplify this a bit more 2015-07-29 22:35:11 -07:00
Christine Dodrill 6bb5d0db06 move HTML rendering baggage to Utils 2015-07-29 22:33:14 -07:00
Christine Dodrill a8147c2461 Show a 404 when a nonexistant page is accessed 2015-07-29 22:23:13 -07:00
Christine Dodrill 03714a8b46 Move CSS rendering into the base template 2015-07-29 21:12:11 -07:00
Christine Dodrill 106a061a8e Make this written the other way around 2015-07-29 20:16:25 -07:00
Christine Dodrill 9c78c6704e Stylize 2015-07-29 18:46:49 -07:00
Christine Dodrill 08a953f852 Use rendered CSS 2015-07-29 18:29:28 -07:00
Christine Dodrill 8dcc285307 Make Post render User directly
Add clay as a lib
2015-07-29 18:01:25 -07:00
Christine Dodrill 1f6f5fc809 Materialize.base -> render 2015-07-29 15:29:54 -07:00
Christine Dodrill bf5d7a8f8c Main: clean up imports 2015-07-29 00:02:44 -07:00
Christine Dodrill 24fbc444ba Main: Make this a bit more vertical 2015-07-28 23:56:26 -07:00
Christine Dodrill 4430d6c4f9 Main: Refactor the router, show thread pages 2015-07-28 23:50:25 -07:00
Christine Dodrill ebf71ed675 Have rendering a post take its author too 2015-07-28 13:41:12 -07:00
Christine Dodrill e255e6672e Use renderMarkup instead of renderHtml 2015-07-28 09:10:57 -07:00
Christine Dodrill fd944b3e34 query and show a user from the database 2015-07-28 08:51:02 -07:00
Christine Dodrill d4cefb71b1 Newline here for clarity 2015-07-28 08:43:49 -07:00
Christine Dodrill 846bbe8eef render posts and users 2015-07-28 08:38:30 -07:00
Christine Dodrill 60ab03761e Log requests to standard out 2015-07-28 07:28:03 -07:00
Christine Dodrill 2173c47696 Add static middleware 2015-07-28 01:10:52 -07:00
Christine Dodrill b28c20f4e5 Run stylish-haskell 2015-07-28 00:00:18 -07:00
Christine Dodrill 7bc70e9753 Simplify Post
You need to import this as qualified or things will break.

Also add some blaze crap for the lols
2015-07-27 23:53:11 -07:00
Christine Dodrill 4b3aa612e3 make the types more explicit 2015-07-27 23:29:29 -07:00
Christine Dodrill b6ca8364a4 Move Post to its own module 2015-07-27 23:18:58 -07:00
Christine Dodrill 5a14a1849a Use Text instead of String 2015-07-27 23:12:13 -07:00
Christine Dodrill b5f1a707e2 Show a single post on / 2015-07-27 22:54:37 -07:00
Christine Dodrill 29215421f3 Add basic working hello world example 2015-07-27 22:03:13 -07:00