Linking is good: bold Here's a bold snip: Snip2 in da house!

60% of the time, it works *every* time.

And lets include some textile:

  1. testing lists
  2. because lists are common things

monkey

what the hell are you looking at?

Beyotch

The source for that was

# testing lists
# because lists are common things

monkey

what the *hell* are __you__ looking at?

"Beyotch":http://example.com

And lets include some markdown!:

testing header

so, how are you?

what the hell are looking at, beyotch?

The source for that was

# testing header

so, how are you?

- item one
- item two
- item three


what the *hell* are _looking_ at, [beyotch](http://example.com)?

We can even render dynasnips asynchronously: test_ajax

How about some debug information: #"interblah.net", "rack.request.cookie_hash"=>{"vanilla.session"=>"BAh7AA==\n--5674dd792b7d58e279fed20206b625ae90355b17"}, "rack.url_scheme"=>"http", "rack.run_once"=>false, "rack.input"=>#, @io=#, @unlinked=true>, "HTTP_ACCEPT_ENCODING"=>"gzip", "HTTP_USER_AGENT"=>"CCBot/1.0 (+http://www.commoncrawl.org/bot.html)", "PATH_INFO"=>"/test", "rack.request"=>#, "rack.errors"=>#, "HTTP_CACHE_CONTROL"=>"no-cache", "HTTP_ACCEPT_LANGUAGE"=>"en-us,en;q=0.5", "HTTP_HOST"=>"interblah.net", "SCRIPT_NAME"=>"", "SERVER_ADDR"=>"72.249.19.15", "SERVER_PROTOCOL"=>"HTTP/1.1", "vanilla.app"=>#"config.yml", :credentials=>{"james"=>"3ccbd5efc46f261b2ba969c865a65752"}, :secret=>"78e6ed39e6a2f2935e85741a02b4b23a17844e40496efde64bd956e87da825a77556d57c981b0febc5b90cbd432a237337de6da102d59431d80a03cea3c3c979", :soup=>"/var/www/apps/interblah.net/soup"}, @authenticator=#>, @response=#"text/html"}, @body=[], @block=nil, @writer=#, @length=0>, @request=#, @soup=#>, "REMOTE_ADDR"=>"38.107.191.118", "SERVER_SOFTWARE"=>"Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch Phusion_Passenger/2.2.9", "rack.request.cookie_string"=>"vanilla.session=BAh7AA%3D%3D%0A--5674dd792b7d58e279fed20206b625ae90355b17", "rack.request.form_input"=>#, @io=#, @unlinked=true>, "rack.request.query_hash"=>{}, "rack.multithread"=>false, "rack.version"=>[1, 0], "HTTP_COOKIE"=>"vanilla.session=BAh7AA%3D%3D%0A--5674dd792b7d58e279fed20206b625ae90355b17", "HTTP_ACCEPT_CHARSET"=>"ISO-8859-1,utf-8;q=0.7,*;q=0.7", "rack.request.form_vars"=>"", "rack.multiprocess"=>true, "HTTP_X_CC_ID"=>"ccc04-02", "REQUEST_URI"=>"/test", "DOCUMENT_ROOT"=>"/var/www/apps/interblah.net/public", "SERVER_PORT"=>"80", "rack.request.form_hash"=>{}, "rack.request.query_string"=>"", "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>2592000, :secret=>"78e6ed39e6a2f2935e85741a02b4b23a17844e40496efde64bd956e87da825a77556d57c981b0febc5b90cbd432a237337de6da102d59431d80a03cea3c3c979", :key=>"vanilla.session"}, "HTTP_PRAGMA"=>"no-cache", "QUERY_STRING"=>"", "REMOTE_PORT"=>"30147", "SERVER_ADMIN"=>"[no address given]", "rack.session"=>{}, "_"=>"_", "HTTP_ACCEPT"=>"text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", "HTTP_CONNECTION"=>"close", "REQUEST_METHOD"=>"GET"}>, @format="html", @env={"SERVER_NAME"=>"interblah.net", "rack.request.cookie_hash"=>{"vanilla.session"=>"BAh7AA==\n--5674dd792b7d58e279fed20206b625ae90355b17"}, "rack.url_scheme"=>"http", "rack.run_once"=>false, "rack.input"=>#, @io=#, @unlinked=true>, "HTTP_ACCEPT_ENCODING"=>"gzip", "HTTP_USER_AGENT"=>"CCBot/1.0 (+http://www.commoncrawl.org/bot.html)", "PATH_INFO"=>"/test", "rack.request"=>#, "rack.errors"=>#, "HTTP_CACHE_CONTROL"=>"no-cache", "HTTP_ACCEPT_LANGUAGE"=>"en-us,en;q=0.5", "HTTP_HOST"=>"interblah.net", "SCRIPT_NAME"=>"", "SERVER_ADDR"=>"72.249.19.15", "SERVER_PROTOCOL"=>"HTTP/1.1", "vanilla.app"=>#"config.yml", :credentials=>{"james"=>"3ccbd5efc46f261b2ba969c865a65752"}, :secret=>"78e6ed39e6a2f2935e85741a02b4b23a17844e40496efde64bd956e87da825a77556d57c981b0febc5b90cbd432a237337de6da102d59431d80a03cea3c3c979", :soup=>"/var/www/apps/interblah.net/soup"}, @authenticator=#>, @response=#"text/html"}, @body=[], @block=nil, @writer=#, @length=0>, @request=#, @soup=#>, "REMOTE_ADDR"=>"38.107.191.118", "SERVER_SOFTWARE"=>"Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch Phusion_Passenger/2.2.9", "rack.request.cookie_string"=>"vanilla.session=BAh7AA%3D%3D%0A--5674dd792b7d58e279fed20206b625ae90355b17", "rack.request.form_input"=>#, @io=#, @unlinked=true>, "rack.request.query_hash"=>{}, "rack.multithread"=>false, "rack.version"=>[1, 0], "HTTP_COOKIE"=>"vanilla.session=BAh7AA%3D%3D%0A--5674dd792b7d58e279fed20206b625ae90355b17", "HTTP_ACCEPT_CHARSET"=>"ISO-8859-1,utf-8;q=0.7,*;q=0.7", "rack.request.form_vars"=>"", "rack.multiprocess"=>true, "HTTP_X_CC_ID"=>"ccc04-02", "REQUEST_URI"=>"/test", "DOCUMENT_ROOT"=>"/var/www/apps/interblah.net/public", "SERVER_PORT"=>"80", "rack.request.form_hash"=>{}, "rack.request.query_string"=>"", "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>2592000, :secret=>"78e6ed39e6a2f2935e85741a02b4b23a17844e40496efde64bd956e87da825a77556d57c981b0febc5b90cbd432a237337de6da102d59431d80a03cea3c3c979", :key=>"vanilla.session"}, "HTTP_PRAGMA"=>"no-cache", "QUERY_STRING"=>"", "REMOTE_PORT"=>"30147", "SERVER_ADMIN"=>"[no address given]", "rack.session"=>{}, "_"=>"_", "HTTP_ACCEPT"=>"text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", "HTTP_CONNECTION"=>"close", "REQUEST_METHOD"=>"GET"}, @symbolised_params={}, @part=nil, @app=#"config.yml", :credentials=>{"james"=>"3ccbd5efc46f261b2ba969c865a65752"}, :secret=>"78e6ed39e6a2f2935e85741a02b4b23a17844e40496efde64bd956e87da825a77556d57c981b0febc5b90cbd432a237337de6da102d59431d80a03cea3c3c979", :soup=>"/var/www/apps/interblah.net/soup"}, @authenticator=#>, @response=#"text/html"}, @body=[], @block=nil, @writer=#, @length=0>, @request=#, @soup=#>, @method="get">

What about a missing snip? Lets try to include one: [snip 'monkey' cannot be found]

And an error when running?

[Error rendering 'bad_dynasnip' - "Oh no"]
bad_dynasnip:4:in `get'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/ruby.rb:31:in `send'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/ruby.rb:31:in `process_text'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:76:in `render_without_including_snips'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:65:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:62:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:70:in `rendering'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:61:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:47:in `include_snips'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:35:in `gsub'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:35:in `include_snips'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:66:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:62:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:70:in `rendering'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:61:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/dynasnips/current_snip.rb:25:in `handle'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/ruby.rb:33:in `process_text'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:76:in `render_without_including_snips'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:65:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:62:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:70:in `rendering'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:61:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:47:in `include_snips'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:35:in `gsub'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:35:in `include_snips'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/renderers/base.rb:66:in `render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:47:in `formatted_render'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/app.rb:32:in `call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/vanilla-1.9.17/lib/vanilla/static.rb:18:in `call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/session/cookie.rb:37:in `call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/rack/application_spawner.rb:114:in `run'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/rack/application_spawner.rb:65:in `spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/utils.rb:184:in `safe_fork'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/rack/application_spawner.rb:58:in `spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/rack/application_spawner.rb:41:in `spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:159:in `spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.9/bin/passenger-spawn-server:61

8 comments for test-commenting

Comments

  1. Not Logged In (Tue Jun 03 21:50:32 +0000 2008)

    I'm not logged in, but I can still comment.
  2. James (Tue Jun 03 21:49:44 +0000 2008)

    test comment

And some sweet syntax highlighting!

class Hello
  def to_s
    "... world!"
  end
end