File: env.rb

package info (click to toggle)
html-template 0.16-2.1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 128 kB
  • ctags: 111
  • sloc: ruby: 869; makefile: 41
file content (12 lines) | stat: -rwxr-xr-x 212 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/ruby

require "html/template"

tmpl = HTML::Template.new("env.html")
tmpl.param({
	     'home' => ENV['HOME'],
	     'path' => ENV['PATH']
	   })
print "Content-Type: text/html\n\n"
print tmpl.output