Source

haskellblog / src / Blog / Templates.hs

Author Commit Message Labels Comments Date
Luke Plant
Corrected more underscores in field names
Luke Plant
Changed various instances of underscores to camelCase, so they can be used in templates Also corrected textraw and textformatted to textRaw and textFormatted
Luke Plant
Various fixes to run on GHC 7.0 and much more recent versions of packages.
Luke Plant
Merged experimental head
Luke Plant
Switched to ByteString StringTemplates
Luke Plant
Cleanups
Luke Plant
Switched to ByteString StringTemplates. This is a big performance improvement, especially with memory usage. It means that templates can't store UTF8, due to the way that templates are read from disk by HStringTemplate, but we can just use HTML entities instead, so that's OK.
Luke Plant
Use ByteString in Comment instead of String This should have the effect of avoiding creation of Strings for talking to the DB, which is inefficient
Luke Plant
Use Data.Time instead of System.Time where possible
Luke Plant
Added showing of comment responses, and AJAX method for adding them
Luke Plant
AJAX moderation for comments - set 'hidden' state.
Luke Plant
Added 'edit posts' admin page
Luke Plant
Beginnings of admin form for blog Posts.
Luke Plant
Made formatWidget more reusable.
Luke Plant
Added anchors to individual comments
Luke Plant
Removed use of 'widgets' for comment form where they added no value. There is no nice way to do the format widget just using template logic, so it stayed as it was.
Luke Plant
Removed use of 'widgets' for login page, which provide no value.
Luke Plant
Switched to Data.Text for templates, and HStringTemplate 0.6 Also switched method of doing escaping and escaping exceptions.
Luke Plant
Moved some code around, removed unused code
Luke Plant
Removed unused code
Luke Plant
Re-implemented info page view using templates
Luke Plant
Use templates for 404 page
Luke Plant
removed unused code
Luke Plant
Re-implemented login page using HStringTemplate
Luke Plant
Implemented 'post' page using HStringTemplate
Luke Plant
Encode some elements as UTF8, to avoid the fact that HStringTemplate uses 'pack' on ByteStrings
Luke Plant
Correct encoding of blog post so that unicode chars come out correctly
Luke Plant
Re-implemented 'category' page using HStringTemplate And removed some unused code
Luke Plant
Re-implemented index view using HStringTemplate
Luke Plant
Nicer symbols for back/next
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next