Current section

Files

Jump to
cadre src cadre.gleam
Raw

src/cadre.gleam

//// View on [A-Frame document](https://aframe.io/docs/master/introduction)
import lustre/attribute.{type Attribute}
import lustre/element.{type Element}
/// View on [A-Frame document](https://aframe.io/docs/master/core/entity.html)
///
pub fn entity(
attributes: List(Attribute(message)),
children: List(Element(message)),
) -> Element(message) {
element.element("a-entity", attributes, children)
}
/// View on [A-Frame document](https://aframe.io/docs/master/core/scene.html)
///
pub fn scene(
attributes: List(Attribute(message)),
children: List(Element(message)),
) -> Element(message) {
element.element("a-scene", attributes, children)
}
/// View on [A-Frame document](https://aframe.io/docs/master/core/mixins.html)
///
pub fn mixin(
attributes: List(Attribute(message)),
children: List(Element(message)),
) -> Element(message) {
element.element("a-mixin", attributes, children)
}
/// View on [A-Frame document](https://aframe.io/docs/master/core/asset-management-system.html)
///
pub fn asset_item(
attributes: List(Attribute(message)),
children: List(Element(message)),
) -> Element(message) {
element.element("a-asset-item", attributes, children)
}