Function domafic::tags::embed [] [src]

pub fn embed<M, C: DomNodes<M>, A: AsRef<[KeyValue]>, L: Listeners<M>, T: Into<TagProperties<M, C, A, L>>>(
    properties: T
) -> Tag<M, C, A, L>

Creates a tag of the given type.

Note the use of Into<TagProperties>. This allows for a wide variety of input parameters such as div(()), div(...children...), div((...attributes..., ...children..)), div((...attributes..., ...listeners...)) and more.