Simple Tutsplus demo app utilizing Sinatra and Redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

17 lines
507 B

12 years ago
  1. !!!5
  2. %html
  3. %head
  4. %title Shortlink App
  5. %link{ rel:"stylesheet", href:"/styles/main.css" }
  6. %body
  7. .container
  8. %h1 shortlink app
  9. %form{ method:"post" }
  10. %input{ type:"text", value:"#{params[:url]}", name:"url", id:"url" }
  11. %input{ type:"submit", value:"shorten", id:"submit" }
  12. .clear
  13. -if @shortcode
  14. .result
  15. Your shortened URL is:
  16. %a{ href:"http://jinfield.com/#{@shortcode}" }
  17. href:"http://jinfield.com/#{@shortcode}"