nit: Added link to `CONTRIBUTING.md` from the README
[nit.git] / lib / popcorn / tests / res / test_example_static_default.res
1
2 [Client] curl -s localhost:*****/css/style.css
3 body {
4         color: blue;
5         padding: 20px;
6 }
7
8 [Client] curl -s localhost:*****/js/app.js
9 alert("Hello World!");
10
11 [Client] curl -s localhost:*****/hello.html
12 <!DOCTYPE html>
13 <html>
14         <head>
15                 <meta charset="UTF-8">
16
17                 <title>Some Popcorn love</title>
18
19                 <link rel="stylesheet" type="text/css" href="/css/style.css">
20         </head>
21         <body>
22                 <h1>Hello Popcorn!</h1>
23
24                 <img src="/images/trollface.jpg" alt="maybe it's a kitten?" />
25
26                 <script src="/js/app.js"></script>
27         </body>
28 </html>
29
30 [Client] curl -s localhost:*****/
31 <!DOCTYPE html>
32 <html>
33         <head>
34                 <meta charset="UTF-8">
35
36                 <title>Some Popcorn love</title>
37
38                 <link rel="stylesheet" type="text/css" href="/css/style.css">
39         </head>
40         <body>
41                 <h1>Default Page</h1>
42         </body>
43 </html>
44
45 [Client] curl -s localhost:*****/css/not_found.nit
46 <!DOCTYPE html>
47 <html>
48         <head>
49                 <meta charset="UTF-8">
50
51                 <title>Some Popcorn love</title>
52
53                 <link rel="stylesheet" type="text/css" href="/css/style.css">
54         </head>
55         <body>
56                 <h1>Default Page</h1>
57         </body>
58 </html>
59
60 [Client] curl -s localhost:*****/static/css/not_found.nit
61 <!DOCTYPE html>
62 <html>
63         <head>
64                 <meta charset="UTF-8">
65
66                 <title>Some Popcorn love</title>
67
68                 <link rel="stylesheet" type="text/css" href="/css/style.css">
69         </head>
70         <body>
71                 <h1>Default Page</h1>
72         </body>
73 </html>
74
75 [Client] curl -s localhost:*****/not_found.nit
76 <!DOCTYPE html>
77 <html>
78         <head>
79                 <meta charset="UTF-8">
80
81                 <title>Some Popcorn love</title>
82
83                 <link rel="stylesheet" type="text/css" href="/css/style.css">
84         </head>
85         <body>
86                 <h1>Default Page</h1>
87         </body>
88 </html>