-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
template.cue
99 lines (86 loc) · 3.26 KB
/
template.cue
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
package schema
#TemplateConfigReplacible: {
// System params
TemplateSystem: *"." | "golang" | "raymond"
//
// Template delimiters
//
// these are for advanced usage, you shouldn't have to modify them normally
// Alt and Swap Delims,
// becuase the defaulttemplate systems use `{{` and `}}`
// and you may choose to use other delimiters, but the lookup system is still based on the template system
// and if you want to preserve those, we need three sets of delimiters
AltDelims: bool | *false
SwapDelims: bool | *false
// The default delimiters
// You should change these when using alternative style like jinjas {% ... %}
// They also need to be different when using the swap system
LHS_D: LHS2_D
RHS_D: RHS2_D
LHS2_D: string | *"."
RHS2_D: string | *"."
LHS3_D: string | *"."
RHS3_D: string | *"."
// These are the same as the default becuase
// the current template systems require these.
// So these should really never change or be overriden until there is a new template system
// supporting setting the delimiters dynamicalldelimiters dynamicallyy
LHS_S: LHS2_S
RHS_S: RHS2_S
LHS2_S: string | *"."
RHS2_S: string | *"."
LHS3_S: string | *"."
RHS3_S: string | *"."
// The temporary delims to replace swap with while also swapping
// the defaults you set to the swap that is required by the current templet systems
// You need this when you are double templating a file and the top-level system is not the default
LHS_T: LHS2_T
RHS_T: RHS2_T
LHS2_T: string | *"."
RHS2_T: string | *"."
LHS3_T: string | *"."
RHS3_T: string | *"."
}
#DefaultTemplateConfig: {
// Include Common attributes
// System params
TemplateSystem: *"golang" | "raymond"
//
// Template delimiters
//
// these are for advanced usage, you shouldn't have to modify them normally
// Alt and Swap Delims,
// becuase the defaulttemplate systems use `{{` and `}}`
// and you may choose to use other delimiters, but the lookup system is still based on the template system
// and if you want to preserve those, we need three sets of delimiters
AltDelims: bool | *false
SwapDelims: bool | *false
// The default delimiters
// You should change these when using alternative style like jinjas {% ... %}
// They also need to be different when using the swap system
LHS_D: LHS2_D
RHS_D: RHS2_D
LHS2_D: string | *"{{"
RHS2_D: string | *"}}"
LHS3_D: string | *"{{{"
RHS3_D: string | *"}}}"
// These are the same as the default becuase
// the current template systems require these.
// So these should really never change or be overriden until there is a new template system
// supporting setting the delimiters dynamicalldelimiters dynamicallyy
LHS_S: LHS2_S
RHS_S: RHS2_S
LHS2_S: string | *"{{"
RHS2_S: string | *"}}"
LHS3_S: string | *"{{{"
RHS3_S: string | *"}}}"
// The temporary delims to replace swap with while also swapping
// the defaults you set to the swap that is required by the current templet systems
// You need this when you are double templating a file and the top-level system is not the default
LHS_T: LHS2_T
RHS_T: RHS2_T
LHS2_T: string | *"#_hof_l2_#"
RHS2_T: string | *"#_hof_r2_#"
LHS3_T: string | *"#_hof_l3_#"
RHS3_T: string | *"#_hof_r3_#"
}