<?php

namespace modules\output;

// handle the output object

class module_info extends \module {

	function __info() {  
		return [
			'version' => '2026.4.20',
			'required' => TRUE,
			'class' => 'modules\\output\\main',
			'name' => 'send output to browser or console',
			'depends' => [],
			'settings' => [
				[
					'name' => 'mode',
					'caption' => 'Website Mode',
					'type' => 'select',
					'options'  => [
						'dev' => 'Development',
						'prod' => 'Production',		// minified js will be used
					],
					'default' => 'dev',
				]
			],
		];
	}
	
	// determine output format : json / xml / html / etc
	
	// if html, load appropriate theme
	//	 	send cookies
	// 		sent content-type
	// otherwise send in appropriate format
	
	// output model will support .serial, .json, .txt by default
	//		debug model will also handle .debug
}
