Common Lisp Package: CL-HAML

README:

FUNCTION

Public

CLEAR-HAML (NAME)

Remove named CL-HAML code.

CLEAR-HAML-ALL

Remove all registered CL-HAML code.

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.

Undocumented

.CLASS (&REST ARGS)

.ID (&REST ARGS)

REGISTER-HAML (NAME CODE &OPTIONAL OBJ)

Private

-_a-zA-Z0-9p (CHAR)

[-_a-zA-Z0-9]

CONCAT-CONTINUE-LINES (IN LINE)

EXECUTE-HAML-FROM-STRING (CODE &KEY ENV)

Execute string CL-HAML code. Returns a string. Keyword parameter $var{CODE} to string objects to the code. $var{ENV} must be a plist.

FLATTEN (LIST)

tree -> flat list.

GET-HAML-FUNCTION (NAME)

Returns the named function implementing a registered CL-HAML code. Rebuilds it when text template was a file which has been modified.

HAML-FUNCTION-FUNCTION (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

HAML-FUNCTION-PATH (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

HAML-FUNCTION-TIME (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

READ-CLASS (STREAM)

Read Haml Class. ex) .class1.class2 -> "class1 class2".

READ-HAML-BODY (STREAM INDENT PARENT-TYPE)

READ-ID (STREAM)

Read Haml Id. ex) #identification -> "identification".

READ-OPTIONS (STREAM &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

Read options. But Ignore `self-closing', `inside-whitespace-remove' and `outside-whitespace-remove' option.

READ-TAG (STREAM)

Read Haml Tag. ex) %xxx -> :|xxx|.

Undocumented

ADD-CLASS (CLASS ATTR-LIST)

ADD-ID (ID ATTR-LIST)

COPY-HAML-FUNCTION (INSTANCE)

EOL-OR-EOF-P (CHAR EOF-VALUE)

GET-INSERT-POINT (TYPE SEXP)

HAML-FN-ARGS (SEXP)

SETFHAML-FUNCTION-FUNCTION (NEW-VALUE INSTANCE)

HAML-FUNCTION-P (OBJECT)

SETFHAML-FUNCTION-PATH (NEW-VALUE INSTANCE)

SETFHAML-FUNCTION-TIME (NEW-VALUE INSTANCE)

HAML-READER-DISPATCH (PARENT-TYPE STREAM &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

MAKE-HAML-FN (STREAM)

MAKE-HAML-FUNCTION (&KEY ((PATH DUM141) NIL) ((TIME DUM142) NIL) ((FUNCTION DUM143) NIL))

MAKE-HAML-READTABLE

READ-ATTRIBUTE-KEY (STREAM &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

READ-ATTRIBUTES (STREAM &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

READ-CONTENT (STREAM &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

READ-CONTENTS (STREAM OPTIONS &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

READ-DOCTYPE (IN)

READ-FILTER-LINE (STREAM)

READ-HAML (STREAM)

READ-HAML-COMMENT (STREAM EOF-VALUE)

READ-HAML-ELEMENT-LINE (STREAM &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

READ-HAML-INSERT-LINE (STREAM &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

READ-HAML-LINE (PARENT-TYPE STREAM INDENT &OPTIONAL (EOF-ERROR-P NIL) (EOF-VALUE +EOF+))

READ-HAML-LISP-BLOCK (STREAM)

READ-LISP-CONTENT (IN)

MACRO

Private

DEFCONSTANT (NAME VALUE &OPTIONAL DOC)

Make sure VALUE is evaluated only once.

WITH-HTML-OUTPUT-TO-STRING ((VAR &OPTIONAL STRING-FORM &KEY (ELEMENT-TYPE ''CHARACTER) PROLOGUE INDENT) &BODY BODY)

Transform the enclosed BODY consisting of HTML as s-expressions into Lisp code which creates the corresponding HTML as a string.

WITH-LOCK (&BODY BODY)

Locking all accesses to *functions*

VARIABLE

Public

*DOCTYPES*

DOCTYPE alist.

*ESCAPE-HTML*

*HTML-MODE*

Undocumented

*FUNCTION-PACKAGE*

*OUTPUT-INDENT-P*

Private

*FUNCTIONS*

Table mapping names to haml-function instances.

*LOCKING-FUNCTION*

Function to call to lock access to an internal hash table. Must accept a function designater which must be called with the lock hold.

Undocumented

*FILTER-CONVERTION*

*WHITESPACE-CHARS*

CLASS

Private

Undocumented

HAML-FUNCTION

CONSTANT

Private

Undocumented

+EOF+

+FILTER+

+HAML+

+HAML-LINE-COMMENT+

+HAML-MULTIPLE-COMMENT+

+LISP+