Linking is good: bold Here's a bold snip: Snip2 in da house!
- Here's a random number between 5 and 15: 6
- Here's a random number between 1 and 90 (the default min): 71
- Here's a random number between 1 and 100 (the default range): 48
60% of the time, it works *every* time.
And lets include some textile:
- testing lists
- because lists are common things
monkey
what the hell are you looking at?
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?
- item one
- item two
- item three
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: #
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
And some sweet syntax highlighting!
class Hello
def to_s
"... world!"
end
end
Not Logged In (Tue Jun 03 21:50:32 +0000 2008)
James (Tue Jun 03 21:49:44 +0000 2008)