package alraune

class AlTag(tagName: String) : _AlTag(tagName) {
    fun data(name: String, value: String) = this.also {attrs.data[name] = value}
}

fun currentTag(): AlTag {
    return _AlTag._parents.get().get(_AlTag._parents.get().size - 1)
}

fun AlTag.displayFlex_alignItemsCenter() = this.also {
    this.appendStyle("display: flex; align-items: center;")
}
