Further improve templating.

このコミットが含まれているのは:
Christian Heller 2016-02-09 03:15:04 +01:00
コミット 88088fb4f4
6個のファイルの変更7行の追加9行の削除

ファイルの表示

@ -1,4 +1,4 @@
<html>
{{ template "header" }}
<h1>edit account</h1>
<form method="POST" action="/account">
E-mail: <input type="text" name="mail" /><br />

ファイルの表示

@ -1,5 +1,4 @@
<html>
{{ template "header" }}
<h1>error</h1>
<p>Something went wrong: {{ .Msg }}</p>
<p><a href="/">Try again?</a></p>
{{ template "footer" }}

ファイルの表示

@ -1,7 +1,6 @@
<html>
{{ template "header" }}
<h1>feed setup</h1>
<p>
Feed successfully set.
<a href="/">Return to twtxt input form.</a>
</p>
{{ template "footer" }}

ファイルの表示

@ -1,10 +1,10 @@
<html>
{{ template "header" }}
<h1>publish a twtxt</h1>
<form method="POST" action="feeds">
Message: <input type="text" name="twt" size="140" /><br />
Name: <input type="text" name="name" />
Password: <input type="password" name="password" /><br />
<input type="submit" value="twt" />
<input type="submit" value="twtxt" />
</form>
No feed yet? <a href="/signup">Create one!</a><br />
Also, check out <a href="/feeds">other people's feeds</a><br />

ファイルの表示

@ -1,4 +1,4 @@
<html>
{{ template "header" }}
<h1>list of feeds</h1>
<ul>
{{ range .Dir }}

ファイルの表示

@ -1,4 +1,4 @@
<html>
{{ template "header" }}
<h1>sign up</h1>
<form method="POST" action="/signup">
Name: <input type="text" name="name" /> (only up to 140 legal chars: A-Z, a-z, 0-1, _)<br />