func (t *Theme) NewModel(mType string) (*Model, error) {
	m, err := NewModel(t, mType)
	if err != nil {
		return nil, errors.Wrap(err, "failed to create model")
	}
	t.Models = append(t.Models, m)
	return m, nil
}
// NewModel returns a new model of the requested type.
NewModel returns a new model of the requested type.
// NewModel returns a new model of the requested type .
func (t *Theme) NewModel(mType string) (*Model, error) {
	m, err := NewModel(t, mType)
	if err != nil {
		return nil, errors.Wrap(err, "failed to create model")
	}
	t.Models = append(t.Models, m)
	return m, nil
}
func ( t * Theme ) NewModel ( mType string ) ( * Model , error ) { m , err := NewModel ( t , mType ) if err != nil { return nil , errors . Wrap ( err , " " ) } t . Models = append ( t . Models , m ) return m , nil }
NewModel returns a new model of the requested type.
NewModel returns a new model of the requested type .