Skip to content

Instantly share code, notes, and snippets.

@LevitatingBusinessMan
Created December 11, 2024 03:49
Show Gist options
  • Save LevitatingBusinessMan/927f9222cda70569b5c5b1f7f2b4c35c to your computer and use it in GitHub Desktop.
Save LevitatingBusinessMan/927f9222cda70569b5c5b1f7f2b4c35c to your computer and use it in GitHub Desktop.
Like slimrb but sets headers and exposes CGI
#!/usr/bin/env ruby
require "cgi"
require "slim"
$cgi = CGI.new
$cgi.out("text/html") do
Slim::Template.new { ARGF.read }.render
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment