spasm v0.2.0-beta.8 (2020-09-12T08:27:15Z)
Dub
Repo
GenerateNestedCssClasses
spasm
css
Undocumented in source.
template
GenerateNestedCssClasses
(alias base, T)
template
GenerateNestedCssClasses (
alias
base
T
) {
template
WithPrefix
(alias symbol)
;
alias
members
=
AliasSeq
!(
__traits
(
allMembers
,
T
))
;
alias
symbols
=
staticMap
!(
ApplyLeft
!(
Symbol
,
T
),
members
)
;
alias
nestedClasses
=
Filter
!(
isType
,
symbols
)
;
static if
(
nestedClasses.length == 0
)
enum
GenerateNestedCssClasses
;
static if
(!(
nestedClasses.length == 0
))
enum
GenerateNestedCssClasses
;
}
template
GenerateNestedCssClasses
(T)
Members
Aliases
members
alias
members
=
AliasSeq
!(
__traits
(
allMembers
,
T
))
Undocumented in source.
nestedClasses
alias
nestedClasses
=
Filter
!(
isType
,
symbols
)
Undocumented in source.
symbols
alias
symbols
=
staticMap
!(
ApplyLeft
!(
Symbol
,
T
),
members
)
Undocumented in source.
Manifest constants
GenerateNestedCssClasses
enum
GenerateNestedCssClasses
;
Undocumented in source.
GenerateNestedCssClasses
enum
GenerateNestedCssClasses
;
Undocumented in source.
Templates
WithPrefix
template
WithPrefix
(alias symbol)
Undocumented in source.
Meta
Source
See Implementation
spasm
css
structs
ApplyStyle
Extend
ExtendedStyleSet
media
not
style
styleset
templates
GenerateCss
GenerateCssClass
GenerateCssClassName
GenerateCssSet
GenerateCssSetExtends
GenerateExtendedCssClass
GenerateExtendedStyleSetName
GenerateNamedCssClass
GenerateNestedCssClass
GenerateNestedCssClasses
GetCss
GetCssClassName
GetPseudoCssSelector
Symbol
TypeOf
chunk
cssIdentifierChar
cssIdentifierChar32
extractExtendedStyleSet
extractStyleSetStruct
extractStyleStruct
getCssKeyValue
getFullName
getStyleSet
getStyleSets
getStyleSetsExtends
getStyles
hasStyleSetUDA
hashChunk
isNonType
reduceChunks
toCss
toCssIdentifier
toCssIdentifier32
toCssName
toCssNameInsensitive
toCssProperty
xor