code/GreenExtension.php
public function DesignModule()
    {
        $module = $this->getModule();

        if (!$module) {
            return;
        }

        $module->loadRequirements();

        $viewer = SSViewer::fromString($module->getTemplateContents());

        return $viewer->process($this->toViewableData());
    }
public function DesignModule()
    {
        $module = $this->getModule();

        if (!$module) {
            return;
        }

        $module->loadRequirements();

        $viewer = SSViewer::fromString($module->getTemplateContents());

        return $viewer->process($this->toViewableData());
    }
public function DesignModule ( ) { $ module = $ this -> getModule ( ) ; if ( ! $ module ) { return ; } $ module -> loadRequirements ( ) ; $ viewer = SSViewer :: fromString ( $ module -> getTemplateContents ( ) ) ; return $ viewer -> process ( $ this -> toViewableData ( ) ) ; }
Renders the design module

@return HTMLText
Renders the design module