Created
December 27, 2011 06:15
-
-
Save shohei/49ce8f7be09c288f4cf2 to your computer and use it in GitHub Desktop.
My first gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'erubis' | |
require 'erubis/tiny' | |
require 'erb' | |
@date = Time.now | |
str = "<%%= Time::at( <%= @date.to_i %> ) %>" | |
puts "== ERB ==" | |
puts ERB.new(str).result(binding) | |
puts "== Erubis::Eruby ==" | |
puts Erubis::Eruby.new(str).result(binding) | |
puts "== Erubis::TinyEruby ==" | |
puts Erubis::TinyEruby.new(str).result(binding) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment