Example DBBasic apps (an API, a blog and a microblog) and a template for new DBBasic modules.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-examples.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-examples.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-examples.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add official module template for creating DBBasic packages 17cf88a 1 year, 1 month ago History
login.html · 605 bytes · 24 lines
1{% extends "base.html" %}
2
3{% block title %}Login - Microblog{% endblock %}
4
5{% block nav %}
6<nav>
7 <a href="/">Home</a>
8 <a href="/login">Login</a>
9 <a href="/register">Register</a>
10</nav>
11{% endblock %}
12
13{% block content %}
14<h2>Login</h2>
15{% if error %}
16<div class="error">{{ error }}</div>
17{% endif %}
18<form method="POST">
19 <input type="email" name="email" placeholder="Email" required>
20 <input type="password" name="password" placeholder="Password" required>
21 <button type="submit">Login</button>
22</form>
23<p>Don't have an account? <a href="/register">Register</a></p>
24{% endblock %}