[enh] initial commit

This commit is contained in:
asciimoo 2013-10-14 23:09:13 +02:00
commit ae9fb1d7dc
11 changed files with 139 additions and 0 deletions

17
searx/templates/base.html Normal file
View file

@ -0,0 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<title>searx {% block title %}{% endblock %}</title>
<link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen" charset="utf-8" />
{% block styles %}
{% endblock %}
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>

View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block content %}
<h1>searx</h1>
<form method="post" action="">
<input type="text" name="q" />
<input type="submit" value="search" />
</form>
{% endblock %}

View file

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<h1>searx</h1>
{% for result in results %}
<p>{{ result|safe }}</p>
{% endfor %}
{% endblock %}