You are here

property HamlView::$hamlOptions in Sassy 7

* * * format: string DOCTYPE format * * doctype: string custom doctype. If null (default) {@link format} must be * a key in {@link doctypes} * * escapeHtml: boolean whether or not to escape X(HT)ML-sensitive characters * in script. If this is true, = behaves like &=; otherwise, it behaves like * !=. Note that if this is set, != should be used for yielding to * subtemplates and rendering partials. * Defaults to false. * suppressEval: boolean Whether or not attribute hashes and scripts designated by = or ~ should be evaluated. If true, the scripts are rendered as empty strings. Defaults to false.

* attrWrapper: string The character that should wrap element attributes. * Characters of this type within attributes will be escaped (e.g. by * replacing them with ') if the character is an apostrophe or a * quotation mark. * Defaults to " (an quotation mark). * * style: string style of output. Can be: * nested: output is nested according to the indent level in the source * expanded: block tags have their own lines as does content which is indented * compact: block tags and their content go on one line * compressed: all unneccessary whitepaces is removed. If ugly is true this * style is used. * * ugly: boolean if true no attempt is made to properly indent or format * the output. Reduces size of output file but is not very readable. * Defaults to true. * * preserveComments: boolean if true comments are preserved in ugly mode. * If not in ugly mode comments are always output. * Defaults to false. * * debug: integer Initial debug setting: * no debug, show source, show output, or show all. * Debug settings can be controlled in the template * Defaults to DEBUG_NONE. * * filterDir: string Path to filters. If specified this will be searched * first followed by 'vendors.phmlp.haml.filters'. * This allows the default filters to be overridden. * * doctypes: array supported doctypes * See HamlRender for default * * emptyTags: array A list of tag names that should be automatically * self-closed if they have no content. * See HamlRender for default * * inlineTags: array A list of inline tags for which whitespace is not collapsed * fully when in ugly mode or stripping outer whitespace. * See HamlRender for default * * minimizedAttributes: array attributes that are minimised. * See HamlRender for default * * preserve: array A list of tag names that should automatically have their * newlines preserved.

Type: array Haml parser option names. These are passed to the parser if set.

File

phamlp/Cake/views/haml.php, line 134

Class

HamlView
Haml allows you to write view files in {@link Haml http://haml-lang.com/} and render them using {@link http://phamlp.googlecode.com PHamlP}.

Code

var $hamlOptions = array(
  'format',
  'doctype',
  'escapeHtml',
  'suppressEval',
  'attrWrapper',
  'style',
  'ugly',
  'preserveComments',
  'debug',
  'filterDir',
  'doctypes',
  'emptyTags',
  'inlineTags',
  'minimizedAttributes',
  'preserve',
  'helperFile',
);