Fusion Syntax
#Literals
fusion
bookTitle = 'The Guide'
chapterTitle = "Universe"
answer = 42
isAwesome = true
#Comments
fusion
// Line comment
# Another line comment
/*
* Multiline comment
*/
#Eel Expressions
fusion
calculated = ${'USD ' + 1337}
rounded = ${Math.floor(3.14)}
If you want to know more about what is possible inside the expressions, read the section about eel expressions and eel helpers.
#Objects
#Prototypes
#Definition
fusion
prototype(MyCustomComponent) {
myProp = 'Some value'
}
#Extension
fusion
prototype(MyCustomComponent) < prototype(Component) {
…
}
#Hierarchical override
fusion
prototype(Book) < prototype(Component) {
prototype(Input).attributes.type = 'email'
}
Override type attribute of all Input
Prototypes inside Book
to "email"