NancyFx/DinnerParty — pull request #6 by prabirshrestha (2012-07-25 03:46:38+00:00)
Title: Cassette

uses cassette v2 beta.
for now i use cassette only for css. seems like lot of changes are required for js as they have inline scripts. i will work on js in a new branch and send a new pull request for it.

i have also reordered the folders.
`~/public`: folder for static files like robots.txt or images not used by css or any static files. this is accessed as /robots.txt and not /public/robots.txt so the root folder of the project does not get polluted. (this is convention is followed by lots of ruby/nodejs and other devs)
`~/assets`: contains the actual css/js stuffs. currently there is only `~/assets/stylesheets` folder along with the images used by css. when i add js using cassette it will go inside `~/assets/javascripts` folder

I don't like the concept of exposing ~/scripts and ~/content folder as static content folder as it will also expose the unminified version of js and css files.

css will only be minified when running in non-debug mode, i.e, release mode.
```csharp
#if !DEBUG
Cassette.Nancy.CassetteNancyStartup.OptimizeOutput = true;
#endif
```