hyaenidae/toolkit/templates/button.rs.html
2021-01-21 23:42:19 -06:00

15 lines
325 B
HTML

@use crate::Button;
@use super::button_inner;
@(button: &Button)
@if let Some(action) = button.action.as_ref() {
<form class="@button.class_string()" method="POST" action="@action">
@:button_inner(button)
</form>
} else {
<div class="@button.class_string()">
@:button_inner(button)
</div>
}