Created
December 11, 2024 03:49
-
-
Save LevitatingBusinessMan/927f9222cda70569b5c5b1f7f2b4c35c to your computer and use it in GitHub Desktop.
Like slimrb but sets headers and exposes CGI
This file contains hidden or 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 "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