// Wrap takes a Tag and creates a Component with it.
Wrap takes a Tag and creates a Component with it.
// Wrap takes a Tag and creates a Component with it .
func Wrap(tag *Tag, elements ...interface{}) *Component {
	c := &Component{
		Tag:        tag,
		id:         shortid.MustGenerate(),
		AutoRender: true,
	}
	c.Add(NewAttribute(AttrID, c.GetID()))
	c.Add(elements...)
	return c
}
func Wrap ( tag * Tag , elements ... interface { } ) * Component { c := & Component { Tag : tag , id : shortid . MustGenerate ( ) , AutoRender : true , } c . Add ( NewAttribute ( AttrID , c . GetID ( ) ) ) c . Add ( elements ... ) return c }
Wrap takes a Tag and creates a Component with it.
Wrap takes a Tag and creates a Component with it .