-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.yml
50 lines (46 loc) · 1.21 KB
/
spec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
status: response.status
headers: response.headers
body: response.body
response:
resolver: conditional
when:
- matches: request.url.pathname
pattern: '^/?$'
use: helloWorld
- matches: request.url.pathname
pattern: '^/hello-world/?$'
use: helloWorld
default : notFound
helloWorld:
inline:
status:
resolver: inline
inline: 200
headers:
resolver: inline
inline:
content-type:
resolver: inline
inline: 'text/html'
body:
resolver: template
engine: mustache
template: './templates/hello-world.mst'
provide:
title:
resolver: inline
inline: 'this is page title!'
notFound:
inline:
status:
resolver: inline
inline: 404
headers:
resolver: inline
inline:
content-type:
resolver: inline
inline: 'text/string'
body:
resolver: inline
inline: 'Page not found!'