libraries/ManiaLib/Gui/Maniacode/Maniacode.php
final public static function render($return = false)
    {
        if ($return) {
            return self::$domDocument->saveXML();
        } else {
            header('Content-Type: text/xml; charset=utf-8');
            echo self::$domDocument->saveXML();
            exit();
        }
    }
final public static function render($return = false)
    {
        if ($return) {
            return self::$domDocument->saveXML();
        } else {
            header('Content-Type: text/xml; charset=utf-8');
            echo self::$domDocument->saveXML();
            exit();
        }
    }
Renders the Maniacode if no return the script will be stopped
@param bool Whether you want to return the XML instead of printing it
@return mixed The XML string if param true, in other case it returns void