cl-haml

API Reference

cl-haml

Haml like XHTML generator.

CL-HAML

  • Variable *OUTPUT-INDENT-P*
    nil
  • Variable *FUNCTION-PACKAGE*
    :cl-user
  • Variable *ESCAPE-HTML*
    nil
  • Variable *HTML-MODE*
    :xhtml
  • Variable *DOCTYPES*
    `((:xhtml
       ("!!!"
        . "<!doctype html public \"-//w3c//dtd xhtml 1.0 transitional//en\" \"http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd\">")
       ("!!! strict"
        . "<!doctype html public \"-//w3c//dtd xhtml 1.0 strict//en\" \"http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd\">")
       ("!!! xml" . "<?xml version=\"1.0\" encoding=\"utf-8\"?>")
       ("!!! frameset"
        . "<!doctype html public \"-//w3c//dtd xhtml 1.0 frameset//en\" \"http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd\">")
       ("!!! 5" . "<!doctype html>")
       ("!!! 1.1"
        . "<!doctype html public \"-//w3c//dtd xhtml 1.1//en\" \"http://www.w3.org/tr/xhtml11/dtd/xhtml1.dtd\">")
       ("!!! basic"
        . "<!doctype html public \"-//w3c//dtd xhtml basic 1.1//en\" \"http://www.w3.org/tr/xhtml11/dtd/xhtml1.dtd\">")
       ("!!! mobile"
        . "<!doctype html public \"-//wapforum//dtd xhtml mobile 1.2//en\" \"http://www.openmobilealliance.org/tech/dtd/xhtml-mobile12.dtd\">")
       ("!!! rdfa"
        . "<!doctype html public \"-//w3c//dtd xhtml+rdfa 1.0//en\" \"http://www.w3.org/markup/dtd/xhtml-rdfa-1.dtd\">"))
      (:html4
       ("!!!"
        . "<!doctype html public \"-//w3c//dtd html 4.01 transitional//en\" \"http://www.w3.org/tr/html4/loose.dtd\">")
       ("!!! strict"
        . "<!doctype html public \"-//w3c//dtd html 4.01//en\" \"http://www.w3.org/tr/html4/strict.dtd\">")
       ("!!! frameset"
        . "<!doctype html public \"-//w3c//dtd html 4.01 frameset//en\" \"http://www.w3.org/tr/html4/frameset.dtd\">"))
      (:html5 ("!!!" . "<!doctype html>")))
    DOCTYPE alist.
  • Function .ID (&rest args)
  • Function .CLASS (&rest args)
  • Function CLEAR-HAML-ALL
    Remove all registered CL-HAML code.
  • Function CLEAR-HAML (name)
    Remove named CL-HAML code.
  • Function REGISTER-HAML (name code &optional obj)
  • Function EXECUTE-HAML (name &key env)
    Execute named CL-HAML code. Returns a string. Keyword parameter $var{ENV} to pass objects to the code. $var{ENV} must be a plist.