File: amshandler

package info (click to toggle)
amrita 1.0.2-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 1,880 kB
  • ctags: 1,363
  • sloc: ruby: 9,159; xml: 978; makefile: 111
file content (15 lines) | stat: -rwxr-xr-x 244 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/ruby

require "amrita/ams"

fname = ENV["PATH_TRANSLATED"] || ARGV.shift
exit unless fname

$amrita_template_path = fname

puts "content-type: text/html"
puts ""

t = Amrita::AmsTemplate[fname]
t.use_compiler = true
t.expand(STDOUT)