{% extends "base.html" %} {% block title %}UNL 2 RDF demo{% endblock %} {% block content %} {% if not unl %} <h1>Enter some UNL here I will convert it to RDF for you</h1> <div class="form-group"> <form action="{{request.path}}" method="POST"> <textarea class="form-control" name="unl" cols="80" rows="10" style="width: 300px; height: 150px;"></textarea> <button class="btn btn-primary" type="submit">Submit</button> </form> </div> {% else %} <h2> UNL </h2> <pre> <code> {{ unl }} </code> </pre> <h2> RDF </h2> <pre> <code> {{ rdf }} </code> </pre> {% endif %} {% endblock %}