func NewTheme(id string) (*Theme, error) {
	t := &Theme{
		ID:       id,
		Created:  now().UTC(),
		Modified: now().UTC(),
	}
	t.Attachments = NewFileCollection()
	t.Files = t.Attachments.NewView()
	t.Models = make([]*Model, 0, 1)
	if err := t.Validate(); err != nil {
		return nil, err
	}
	return t, nil
}
// NewTheme returns a new, bare-bones theme, with the specified ID.
NewTheme returns a new, bare-bones theme, with the specified ID.
// NewTheme returns a new bare - bones theme with the specified ID .
func NewTheme(id string) (*Theme, error) {
	t := &Theme{
		ID:       id,
		Created:  now().UTC(),
		Modified: now().UTC(),
	}
	t.Attachments = NewFileCollection()
	t.Files = t.Attachments.NewView()
	t.Models = make([]*Model, 0, 1)
	if err := t.Validate(); err != nil {
		return nil, err
	}
	return t, nil
}
func NewTheme ( id string ) ( * Theme , error ) { t := & Theme { ID : id , Created : now ( ) . UTC ( ) , Modified : now ( ) . UTC ( ) , } t . Attachments = NewFileCollection ( ) t . Files = t . Attachments . NewView ( ) t . Models = make ( [ ] * Model , 0 , 1 ) if err := t . Validate ( ) ; err != nil { return nil , err } return t , nil }
NewTheme returns a new, bare-bones theme, with the specified ID.
NewTheme returns a new bare - bones theme with the specified ID .