module (..., package.seeall) -- Public methods default_action = "read" read = function (self ) return ({skin = self.model:get(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} ) end update = function (self ) local newskin = self.clientdata.skin or "" local updated = self.model:update(newskin) redirect(self) -- return ({skin = self.model:get(), updated=self.model:update(newskin), url = self.conf.script .. self.conf.prefix .. self.conf.controller} ) end