OSDN Git Service
(root)
/
xerial
/
xerial-core.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
imported from subversion repository
[xerial/xerial-core.git]
/
script
/
erb.rb
1
require 'erb'
\r
2
\r
3
# run your erb script from the ruby command
\r
4
# ruby erb.rb your_erb.erb
\r
5
\r
6
erbFile = ARGV[0]
\r
7
\r
8
print ERB.new(open(erbFile).read, nil, ">").result
\r