Skip to content
A 'micro' version of the Mack Framework http://www.mackframework.com
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
README
Rakefile

README

Micro Mack
========================================================================
micro-mack was developed by: markbates

=== Sample Application

  require "rubygems"
  require "micro-mack"
  
  app.get("/") do
    text "hello world!"
  end
  
  app.get("/foo") do
    inline "<%= 1 + 1 %>"
  end
  
  app.get("/posts/new") do
   text %{
  <form action="/posts/create" method="post">
    <input type="text" name="id" value=""/>
    <input type="submit" value="Submit" />
  </form>
    }
  end
  
  app.post("/posts/create") do
    text "id: #{params[:id]}"
  end
  
  MicroMack.start!
Something went wrong with that request. Please try again.