= Tempura sample

== Summary

* sample.rb        - A sample script in README
* template         - A script which shows usage of Tempura as a simple template library
* cgi              - An example of MVC model WEB application of CGI base
* div              - An example of MVC model WEB application of Div/Tofu/WEBrick base
* first            - The first, a sample included in Div 1.2.0, rewrited with Tempura::Div
* first_variation  - The first which shows usage to mix Div::Div and Tempura::Div

== launch

=== template

  cd template
  ruby -I../../lib main.rb (en|ja)

And a result is printed.

=== cgi

Modify cgi/app.cgi if it's necessary; e.g. 1st line or path to
tempura.  copy or link the cgi directory to apache aware
location. Configure apacheq if necessary.

=== div

  cd div
  ruby -I../../lib start_app.rb

And open http://localhost:2000/div with web browser.

=== first

  cd first
  ruby -I../../lib tofu-runner.rb

And open http://localhost:2000/div with web browser.

=== first_variable

  cd first_variation

  ruby -I../../lib tofu-runner.rb  # => print usage

  ruby -I../../lib tofu-runner.rb {erb|tempura} {erb|tempura}

And open http://localhost:2000/div with web browser.

e.g. erb based BaseDiv, and tempura based SumDiv

  ruby -I../../lib tofu-runner.rb erb tempura

e.g. tempura based BaseDiv, and erb based SumDiv

  ruby -I../../lib tofu-runner.rb tempura erb
