Sha256: 6854fd7eff982c1232c2795bce298a68e07fe5671f276d7d65333f6b1bf3078f

Contents?: true

Size: 1.97 KB

Versions: 3

Compression:

Stored size: 1.97 KB

Contents

= vitrine

Is a very small, simple web server one-liner for modern web-apps, a bit in the style of
lineman, serve and such. Does three things:

* Assumes two directories exist in the tree you are using - "views" and "public"
* Takes a single line ('vitrine') and starts on the default port (4000)
* Converts .coffee to .js on the fly using ExecJS. Link to your .coffee files as if they were .js
   "script.js" will automatically pick up "script.coffee", compile it and serve it to the browser
* Converts .scss to .css on the fly using Sass. Link to your .scss files as if they were .css
   "styles.css" will automatically pick up "styles.scss", compile it and serve it to the browser

CoffeeScript and SASS will be served right from your "public" directory, if there are no stylesheets
with the same names. Templates from "views" will be used for pages that do not exist in HTML form.

If you have errors in your CoffeeScript that prevent it from compiling you will get an error in your browser
console. If you have CSS errors that prevent the SASS stylesheets from compiling you will get an error message
in front of your body element.

Vitrine will not do any minification, packaging or baking at this point - it's meant to be like a display case.

== Contributing to vitrine
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature/bugfix branch.
* Commit and push until you are happy with your contribution.
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2013 Julik Tarkhanov. See LICENSE.txt for
further details.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vitrine-0.0.3 README.rdoc
vitrine-0.0.2 README.rdoc
vitrine-0.0.1 README.rdoc