Example #1
0
func (self *Configuration) Init() error {
	c := model.NewColor(self.DummyImageColor)
	self.dummyImageURL = ColoredImageDataURL(c.RGBA())
	view.Config.Form.DefaultFieldControllers = append(view.Config.Form.DefaultFieldControllers,
		ImageRefController{},
		BlobRefController{},
	)
	return nil
}
Example #2
0
func (self *Configuration) Init() error {
	c := model.NewColor(self.DummyImageColor)
	self.dummyImageURL = ColoredImageDataURL(c.RGBA())
	return nil
}