-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupward.yml
66 lines (62 loc) · 1.23 KB
/
upward.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
status: response.status
headers: response.headers
body: response.body
response:
resolver: conditional
when:
- matches: request.url.pathname
pattern: '^/js/app.js'
use: appScript
default: app
app:
inline:
status:
resolver: inline
inline: 200
headers:
resolver: inline
inline:
content-type:
resolver: inline
inline: 'text/html'
body:
resolver: template
engine: mustache
template: './templates/app.mst'
provide:
title:
resolver: inline
inline: 'This is the 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!'
appScript:
inline:
status:
resolver: inline
inline: 200
headers:
resolver: inline
inline:
content-type:
resolver: inline
inline: 'application/javascript'
body:
resolver: file
file:
resolver: inline
inline: './dist/app.js'
encoding:
resolver: inline
inline: 'utf-8'