initial commit

This commit is contained in:
2020-03-07 21:35:38 -08:00
commit 925b0a2ec7
20 changed files with 354 additions and 0 deletions

6
templates/about.html Normal file
View File

@ -0,0 +1,6 @@
<h1>First Site</h1>
Hello There
<h4><a href="{% url 'home' %}">Return Home</a></h4>

22
templates/count.html Normal file
View File

@ -0,0 +1,22 @@
<h1>Text Information</h1>
word count: {{ count }}
<br/>
<br/>
word dictionary: {{ worddict }}
<br/>
<br/>
{% for word, total in wordsorted %}
{{ word }} : {{ total }} <br/>
{% endfor %}
<br/>
<br/>
<h1>Your Text</h1>
{{ fulltext }}
<br/>
<br/>
<h2><a href="{% url 'home' %}">Another Run</a></h2>

9
templates/home.html Normal file
View File

@ -0,0 +1,9 @@
<h1>Word Count</h1>
<h4><a href="{% url 'about' %}">About</a></h4>
<form action="{% url 'count' %}">
<textarea cols="40" rows="10" name="fulltext"></textarea>
<br/>
<input type="submit" value="Count!"/>
</form>