/edit.html

https://code.google.com/p/wheresthatfile/ · HTML · 11 lines · 10 code · 1 blank · 0 comment · 0 complexity · 0ef200524d83e5decd1c223fcce34245 MD5 · raw file

  1. <h1>WTF: {{.Title |html}}</h1>
  2. <h2>WTF: {{.Count |html}}</h2>
  3. <form action="/save/{{.Title |html}}" method="POST">
  4. <input name="file" placeholder="file to find" required />
  5. </form>
  6. <body>
  7. <p>
  8. {{range .Files }} {{print "<a href=\"file://" . "\">" . "</a><br>"}}{{end}}
  9. </p>
  10. </body>