-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
html/template - separando o html do código go
- Loading branch information
1 parent
3c44c51
commit 9f45b62
Showing
2 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Vamos criar um arquivo de modelo contendo o formulário HTML. Abra um novo arquivo denominado | ||
edit.html e adicione as seguintes linhas: --> | ||
|
||
<h1>Editando {{.Titulo}}</h1> | ||
|
||
<form action="/save/{{.Titulo}}" method="POST"> | ||
<div><textarea name="body" rows="20" cols="80">{{printf "%s" .Corpo}}</textarea></div> | ||
<div><input type="submit" value="Salvar"></div> | ||
</form> | ||
|
||
<!-- =======================================> volte para wiki.go --> |
This file contains 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