doc/rdoc/files/README.html in Capcode-0.5.0 vs doc/rdoc/files/README.html in Capcode-0.6.0
- old
+ new
@@ -79,11 +79,11 @@
</div>
<div id="README" class="page_shade">
<div class="page">
<div class="header">
- <div class="path">README / Thu May 07 15:41:00 +0200 2009</div>
+ <div class="path">README / Mon Jun 08 16:06:13 +0200 2009</div>
</div>
<h1><a href="../classes/Capcode.html">Capcode</a></h1>
<p>
Copyright (C) 2009 Gregoire Lejeune
@@ -96,10 +96,33 @@
<h2>DESCRIPTION:</h2>
<p>
<a href="../classes/Capcode.html">Capcode</a> is a web microframework
</p>
<h2>FEATURES/PROBLEMS:</h2>
+<h3>0.5.1</h3>
+<ul>
+<li>Add :root option to <a
+href="../classes/Capcode.html#M000008">Capcode.run</a>. This option allow
+you to specify the root directory for static files
+
+</li>
+<li>Add :working_directory option to <a
+href="../classes/Capcode.html#M000008">Capcode.run</a>. This option allow
+you to specify the working directory
+
+</li>
+<li>Of ’/’ route is not defined but /index.html exist, display
+index
+
+</li>
+<li>add mime-types dependency
+
+</li>
+<li>Bug correction in erb and haml renderer
+
+</li>
+</ul>
<h3>0.5.0</h3>
<ul>
<li>Add Haml and Markaby renderer
</li>
@@ -271,50 +294,50 @@
Capcode.run( )
</pre>
<h3>Render with Haml</h3>
<pre>
- # file: sample.rb
- require 'rubygems'
- require 'capcode'
- require 'capcode/render/haml'
- Capcode::Helpers.haml_path = "./my_haml_views"
+ # file: sample.rb
+ require 'rubygems'
+ require 'capcode'
+ require 'capcode/render/haml'
+ Capcode::Helpers.haml_path = "./my_haml_views"
- module Capcode
- class Hello < Route '/hello'
- def get
- @t = Time.now
- render :haml => :time
- end
- end
- end
+ module Capcode
+ class Hello < Route '/hello'
+ def get
+ @t = Time.now
+ render :haml => :time
+ end
+ end
+ end
- Capcode.run( )
+ Capcode.run( )
- # ./my_haml_views/time.haml
- %html
- %body
- %p
- Hello World
- = @t
+ # ./my_haml_views/time.haml
+ %html
+ %body
+ %p
+ Hello World
+ = @t
</pre>
<h3>Render with JSON</h3>
<pre>
- # file: sample.rb
- require 'rubygems'
- require 'capcode'
- require 'capcode/render/json'
+ # file: sample.rb
+ require 'rubygems'
+ require 'capcode'
+ require 'capcode/render/json'
- module Capcode
- class Hello < Route '/hello'
- def get
- @t = Time.now
- render :json => { :time => @t }
- end
- end
- end
+ module Capcode
+ class Hello < Route '/hello'
+ def get
+ @t = Time.now
+ render :json => { :time => @t }
+ end
+ end
+ end
- Capcode.run( )
+ Capcode.run( )
</pre>
<h2>REQUIREMENTS:</h2>
<ul>
<li>rack
\ No newline at end of file