File modules/cms/output/CssOutput.class.php
Last commit: Sat Mar 19 01:29:19 2022 +0100 dankert Fix: PreviewOutput should inherit from UIOutput.
1 <?php 2 3 namespace cms\output; 4 5 use cms\output\APIOutput; 6 use Exception; 7 use util\json\JSON; 8 use util\YAML; 9 10 /** 11 * CSS rendering. 12 */ 13 class CssOutput extends BaseOutput 14 { 15 public function getContentType() 16 { 17 return 'text/css'; 18 } 19 20 protected function outputData($request, $data) 21 { 22 echo implode('',$data['output'] ); 23 } 24 25 26 /** 27 * @param $text string Error Message 28 * @param $cause Exception 29 */ 30 protected function setError($text, $cause) 31 { 32 echo "/* CSS Output error */"; 33 echo "/* ".$cause->getMessage()." */"; 34 } 35 }
Downloadmodules/cms/output/CssOutput.class.php
History Sat, 19 Mar 2022 01:29:19 +0100 dankert Fix: PreviewOutput should inherit from UIOutput. Sun, 6 Feb 2022 21:56:52 +0100 dankert New CssOutput which outputs the CSS in a cleaner way.