Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created November 17, 2013 16:35
Show Gist options
  • Save BitPuffin/6b3d6f1f66e8c8ae5074 to your computer and use it in GitHub Desktop.
Save BitPuffin/6b3d6f1f66e8c8ae5074 to your computer and use it in GitHub Desktop.
#! stdtmpl | standard
#proc htmlNewArticle(): string =
# result = ""
<header>
<h1>New Article!</h1>
</header>
<br/>
<form action="/articles/new" method="post">
<div>
<label for="title">Title</label>
<input type="text" id="title"/>
</div>
<div>
<label for="content">Content</label>
<textarea id="content"></textarea>
</div>
<div>
<button type="submit">Post!</button>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment