al3x / simple-scala-blog

An example of a simple static blog generator in Scala.

This URL has Read+Write access

name age message
file .gitignore Mon Nov 24 20:53:55 -0800 2008 working Atom and sitemap output, faster [al3x]
file LICENSE Sun Nov 30 12:19:58 -0800 2008 okay, let's open this thing up [al3x]
file Makefile Sun Feb 01 13:20:46 -0800 2009 un-al3x-ify [al3x]
file README.textile Sun Feb 01 13:20:46 -0800 2009 un-al3x-ify [al3x]
directory posts/ Sun Feb 01 13:20:46 -0800 2009 un-al3x-ify [al3x]
directory src/ Sun Feb 01 13:20:46 -0800 2009 un-al3x-ify [al3x]
directory static/ Sun Feb 01 13:20:46 -0800 2009 un-al3x-ify [al3x]
directory templates/ Tue Jan 06 12:22:10 -0800 2009 fix meta http-equiv content-type tag [al3x]
README.textile

Simple Scala Blog

A lightweight blogging system, designed to transmute a directory of Textile files into an equivalent directory of HTML files with a minimum of fuss.

Rationalization

Writing a custom blogging system is a wholly unnecessary act. This system was written so the author could muck about with Scala. Though there’s some basic attempt at providing a configuration mechanism, templates and logic are currently too intertwined. Improving this is an exercise for the reader/forker.

You’re encouraged to borrow chunks of code you fancy. The good parts are mostly the use of XML literals. You might find the FileHelpers trait handy, as it provides easy-to-use methods for stuff that should really be in java.io.File or similar.

Requirements

  • Scala (tested with 2.7.2 final)
  • GNU Make
  • JTextile (included, but is kind of wonky)
  • GNU RegExp for Java (included)

License

Licensed under the Apache Public License, Version 2.