initial commit
This commit is contained in:
6
templates/about.html
Normal file
6
templates/about.html
Normal 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
22
templates/count.html
Normal 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
9
templates/home.html
Normal 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>
|
||||
|
Reference in New Issue
Block a user