-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Assets.fusion
35 lines (30 loc) · 1.08 KB
/
Assets.fusion
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
prototype(Carbon.IncludeAssets:Assets) < prototype(Neos.Fusion:Array) {
// Body || Head
location = null
@context.location = ${this.location}
@ignoreProperties = ${['location']}
@if.hasLocation = ${this.location ? true : false}
googleFonts = Carbon.IncludeAssets:GoogleFonts {
@if.head = ${location == 'Head' ? true : false}
}
general = Carbon.IncludeAssets:Collection {
context = 'General'
location = ${location}
}
inBackend = Carbon.IncludeAssets:Collection {
context = 'Backend'
location = ${location}
}
live = Carbon.IncludeAssets:Collection {
context = 'Live'
location = ${location}
}
loadJSforCSSAsynchron = Carbon.IncludeAssets:File {
path = 'resource://Carbon.IncludeAssets/Private/Templates/LoadCssAsync.js[inline]'
config = ${Configuration.setting('Carbon.IncludeAssets')}
@if {
render = ${this.config.LoadCSSAsynchron && this.config.LoadJSforCSSAsynchron ? true : false}
head = ${location == 'Head' ? true : false}
}
}
}