Skip to content

Instantly share code, notes, and snippets.

@LevitatingBusinessMan
Created December 11, 2024 03:49
Show Gist options
  • Select an option

  • Save LevitatingBusinessMan/927f9222cda70569b5c5b1f7f2b4c35c to your computer and use it in GitHub Desktop.

Select an option

Save LevitatingBusinessMan/927f9222cda70569b5c5b1f7f2b4c35c to your computer and use it in GitHub Desktop.

Revisions

  1. LevitatingBusinessMan revised this gist Dec 11, 2024. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion slimcgi
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@
    require "cgi"
    require "slim"
    $cgi = CGI.new
    p ARGF
    $cgi.out("text/html") do
    Slim::Template.new { ARGF.read }.render
    end
  2. LevitatingBusinessMan created this gist Dec 11, 2024.
    8 changes: 8 additions & 0 deletions slimcgi
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/usr/bin/env ruby
    require "cgi"
    require "slim"
    $cgi = CGI.new
    p ARGF
    $cgi.out("text/html") do
    Slim::Template.new { ARGF.read }.render
    end