forked from knapsack-cloud/twig-renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
106 lines (106 loc) · 3.31 KB
/
config.schema.json
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"type": "object",
"required": ["src"],
"additionalProperties": false,
"properties": {
"src": {
"type": "object",
"title": "Twig Source Files",
"required": ["roots"],
"additionalProperties": false,
"properties": {
"roots": {
"type": "array",
"description": "Root directories for Twig Loader",
"items": {
"type": "string"
}
},
"namespaces": {
"type": "array",
"items": {
"type": "object",
"title": "Individual Namespaces",
"required": ["id", "paths"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "Machine Name of Namespace; will use as `@id/file.twig`."
},
"recursive": {
"type": "boolean",
"default": false,
"description": "If set, will expand all paths to include all sub-directories."
},
"paths": {
"type": "array",
"description": "Paths to directories to look for twig files in under this Namespace.",
"items": {
"type": "string"
}
}
}
}
}
}
},
"relativeFrom": {
"type": "string",
"description": "Path to directory that all paths in this config are relative from. Defaults to CWD."
},
"alterTwigEnv": {
"type": "array",
"title": "Alter Twig Environment",
"description": "A collection of PHP files and their functions to call that can alter the Twig_Environment right after it is created. This allows adding Twig Extensions and many others things.",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"file": {
"type": "string",
"description": "PHP file to include that contains the functions to call."
},
"functions": {
"type": "array",
"description": "PHP Functions to execute with a param of Twig_Environment.",
"items": {
"type": "string"
}
}
}
}
},
"hasExtraInfoInResponses": {
"type": "boolean",
"default": false,
"description": "Should there be an 'info' key on the response object with extra debug details?"
},
"autoescape": {
"type": "boolean",
"default": false,
"description": "Passed to creation of Twig Environment."
},
"debug": {
"type": "boolean",
"default": true,
"description": "Passed to creation of Twig Environment."
},
"verbose": {
"type": "boolean",
"default": false,
"description": "Should the terminal output a lot of info?"
},
"keepAlive": {
"type": "boolean",
"default": false,
"title": "Keep render server alive?",
"description": "If false, spins up PHP render server for each batch of render calls. If true, requires deliberate calls to start and stop render server."
},
"maxConcurrency": {
"type": "integer",
"default": 100,
"description": "How many concurrent template rendering requests to do. Reduce if you get errors."
}
}
}