snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

auth snaplet project template for snap 0.9 #32

Closed nurpax closed 12 years ago

nurpax commented 12 years ago

Add a simple project template that demonstrates basic usage of the auth snaplet.

I'm new to github pull requests - so apologies if you want patches in some other format (or rebased into a single commit or similar.)

Tested in the 0.9 branch by cabal-dev building in the snap/project_template/auth directory.

BTW I couldn't get some parts of snap 0.9 to build locally, I faced this error:

Loading package snap-server-0.9.0 ... linking ... done.

src/Snap/Starter.hs:1:1: Exception when trying to run compile-time code: project_template/barebones/./dist/build/projname/projname-tmp/Main.o: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character)

I disabled this part of snap and rebuilt - and got it to work.

nurpax commented 12 years ago

Actually, I just noticed that I messed up git commit timestamps.. My dev virtual machine date is off.

I'll push another patch with correct times + rebase into a single change.