Skip to content

Instantly share code, notes, and snippets.

@puneetkay
Created December 5, 2013 19:12
Show Gist options
  • Save puneetkay/7811424 to your computer and use it in GitHub Desktop.
Save puneetkay/7811424 to your computer and use it in GitHub Desktop.
Tech Specs / Model
Class:
CSSParser
Functions:
1 - minifier()
2 - beautifier()
3 - parser()
Input variables:
$this->input->post('content') OR $_POST['content']
Output variables (for minifier and beautifier):
$this->data['output'] - for output content after processing
Output variables (for parser):
$this->data['output']->severe - array for severe errors in CSS.
$this->data['output']->error - array for errors.
$this->data['output']->warning - array for warnings.
Possible array format (line_number => 'error')
Interaction variables:
$this->data['success'] - If successful, with message to display
$this->data['error'] - If not successful, with array of errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment