setup twig
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7683dd2129
commit
b8edb27f1c
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Twig view</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Hello world</h1>
|
||||
|
||||
|
||||
{% for v in results %}
|
||||
<p>username: {{ v.name }}</p>
|
||||
<p>description: {{ v.description }}</p>
|
||||
{% endfor %}
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Twig view</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Hello, this is a sample form made in Twig !</h1>
|
||||
|
||||
<form action="/submit-twig" method="POST">
|
||||
<label for="name">your name: </label>
|
||||
<input type="text" id="name" name="name"/>
|
||||
<label for="password">a little description about yourself: </label>
|
||||
<input type="text" id="password" name="description"/>
|
||||
<input type="submit" value="click me to submit!"/>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue