The cl-mustache Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The cl-mustache Reference Manual

This is the cl-mustache Reference Manual, version 0.12.3, generated automatically by Declt version 2.4 "Will Decker" on Wed Jun 20 11:15:55 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

========
CL-MUSTACHE
========

.. image:: https://travis-ci.org/kanru/cl-mustache.png?branch=master
   :target: https://travis-ci.org/kanru/cl-mustache

Inspired by ctemplate_ and et_, Mustache_ is a
framework-agnostic way to render logic-free views.

As ctemplates says, "It emphasizes separating logic from presentation:
it is impossible to embed application logic in this template language."

CL-MUSTACHE is a Common Lisp implementation of Mustache v1.1.2+λ. Tested with:

 - SBCL 1.0.55
 - CLISP 2.49

CL-MUSTACHE is semantically versioned: http://semver.org.

Documentation
=============

The different Mustache tags are documented at `mustache(5)`_.

Install It
==========

Using quicklisp is recommended.

::

    CL-USER> (ql:quickload "cl-mustache")


Use It
======

Currently accepts context data in alist format, for example:

::

   `((:tag . "string")
     (:array . #(1 2 3 4))
     (:lambda ,(lambda () "world"))
     (:nested . ((:data . t))))

To render the template:

::

    CL-USER> (mustache:render* "Hi {{person}}!" '((:person . "Mom")))
    "Hi Mom!"

Or save the renderer for later use:

::

    CL-USER> (setf view (mustache:compile-template "Hi {{person}}!"))

Or define static renderer function:

::

    CL-USER> (mustache:define view "Hi {{person}}!")
    CL-USER> (view context)

Test It
=======

::

    CL-USR> (ql:quickload "cl-mustache-test")
    CL-USR> (mustache-test:run)

Extend It (Experimental)
========================

Define your tag classes, tag character and render function:

::

    (in-package :mustache)
    (defclass exec-tag (non-standalone-tag)
      ((command :initarg :command :accessor command)))
    (set-mustache-character
      #\$
      (lambda (raw-text arg-text escapep start end)
        (make-instance 'exec-tag :command arg-text)))
    ;; or
    ;; (define-mustache-character #\$
    ;;   (make-instance 'exec-tag :command arg-text))
    (defmethod render-token ((token exec-tag) context template)
       (print-data (run-program-output (command token)) t context))

.. _ctemplate: http://code.google.com/p/google-ctemplate/
.. _et: http://www.ivan.fomichev.name/2008/05/erlang-template-engine-prototype.html
.. _Mustache: http://mustache.github.com/
.. _mustache(5): http://mustache.github.com/mustache.5.html


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cl-mustache

Author

Kan-Ru Chen <kanru@kanru.info>

License

MIT/Expat

Description

Mustache Template Renderer

Version

0.12.3

Dependency

uiop

Source

cl-mustache.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 cl-mustache.asd

Location

cl-mustache.asd

Systems

cl-mustache (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 cl-mustache/packages.lisp

Parent

cl-mustache (system)

Location

packages.lisp

Packages

mustache


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 cl-mustache/mustache.lisp

Dependency

packages.lisp (file)

Parent

cl-mustache (system)

Location

mustache.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.4 cl-mustache/compat-api-v1.lisp

Dependency

mustache.lisp (file)

Parent

cl-mustache (system)

Location

compat-api-v1.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 mustache

Source

packages.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Special variables

Special Variable: *context*

Current context for lambda section

Package

mustache

Source

mustache.lisp (file)

Special Variable: *default-pathname-type*

The default file extension for partials.

Package

mustache

Source

mustache.lisp (file)

Special Variable: *load-path*

A list. The search pathes for partials.

Package

mustache

Source

mustache.lisp (file)

Special Variable: *mustache-output*

Deprecated in favor of MUSTACHE:*OUTPUT* since version 0.10.0

Package

mustache

Source

compat-api-v1.lisp (file)

Special Variable: *output-stream*

The default output stream for mustache rendering. Bind this variable before calling mustache-rendering and friends. Default is *standard-output*.

Package

mustache

Source

mustache.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Macros

Macro: define NAME TEMPLATE

Define a named renderer of string TEMPLATE.

Package

mustache

Source

mustache.lisp (file)

Macro: defmustache NAME TEMPLATE

Define a named renderer of string TEMPLATE.

Package

mustache

Source

compat-api-v1.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Functions

Function: make-context &key DATA PARTIALS

Create mustache context from alist DATA.

Package

mustache

Source

mustache.lisp (file)

Function: mustache-compile &rest ARGS

Return a compiled rendering function.

Package

mustache

Source

compat-api-v1.lisp (file)

Function: mustache-context &rest ARGS

Create mustache context from alist DATA.

Package

mustache

Source

compat-api-v1.lisp (file)

Function: mustache-render &rest ARGS

Render TEMPLATE with optional CONTEXT to *OUTPUT-STREAM* or OUTPUT-STREAM

Package

mustache

Source

compat-api-v1.lisp (file)

Function: mustache-render-to-stream STREAM TEMPLATE &optional CONTEXT

Render TEMPLATE with optional CONTEXT to STREAM.

Package

mustache

Source

compat-api-v1.lisp (file)

Function: mustache-render-to-string &rest ARGS

Render TEMPLATE with optional CONTEXT to string.

Package

mustache

Source

compat-api-v1.lisp (file)

Function: mustache-type &rest ARGS

Return the CL-MUSTACHE version.

Package

mustache

Source

compat-api-v1.lisp (file)

Function: mustache-version &rest ARGS

Return the CL-MUSTACHE version.

Package

mustache

Source

compat-api-v1.lisp (file)

Function: render* TEMPLATE &optional CONTEXT

Render TEMPLATE with optional CONTEXT to string.

Package

mustache

Source

mustache.lisp (file)

Function: version ()

Return the CL-MUSTACHE version.

Package

mustache

Source

mustache.lisp (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.4 Generic functions

Generic Function: compile-template TEMPLATE

Return a compiled rendering function.

Package

mustache

Source

mustache.lisp (file)

Methods
Method: compile-template (TEMPLATE pathname)
Method: compile-template (TEMPLATE string)
Generic Function: render TEMPLATE &optional CONTEXT OUTPUT-STREAM

Render TEMPLATE with optional CONTEXT to *OUTPUT-STREAM* or OUTPUT-STREAM

Package

mustache

Source

mustache.lisp (file)

Methods
Method: render (TEMPLATE pathname) &optional CONTEXT OUTPUT-STREAM
Method: render (TEMPLATE string) &optional CONTEXT OUTPUT-STREAM

Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *close-delimiter*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *default-close-delimiter*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *default-open-delimiter*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *default-triple-close-delimiter*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *default-triple-open-delimiter*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *mustache-tag-table*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *open-delimiter*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *real-standard-output*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *triple-close-delimiter*
Package

mustache

Source

mustache.lisp (file)

Special Variable: *triple-open-delimiter*
Package

mustache

Source

mustache.lisp (file)

Special Variable: beginning-of-line
Package

mustache

Source

mustache.lisp (file)

Special Variable: crlf
Package

mustache

Source

mustache.lisp (file)

Special Variable: crlf-newline
Package

mustache

Source

mustache.lisp (file)

Special Variable: newline
Package

mustache

Source

mustache.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Macros

Macro: define-mustache-character CHAR &body BODY
Package

mustache

Source

mustache.lisp (file)

Macro: make-obsolete OBSOLETE-NAME CURRENT-NAME WHEN
Package

mustache

Source

compat-api-v1.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Functions

Function: %output ()
Package

mustache

Source

mustache.lisp (file)

Function: call-lambda LAMBDA TEXT CONTEXT
Package

mustache

Source

mustache.lisp (file)

Function: change-delimiter TEXT

Change the mustache tag delimiter according to TEXT. The syntax grammar is:
delimiter-tag = left-d 1*space right-d
left-d = *ALPHANUM
right-d = *ALPHANUM
space = #\Space #\Tab

Package

mustache

Source

mustache.lisp (file)

Function: collect-line TOKENS
Package

mustache

Source

mustache.lisp (file)

Function: ensure-context MAYBE-CONTEXT

Ensure MAYBE-CONTEXT is a valid context. If not then make one.

Package

mustache

Source

mustache.lisp (file)

Function: escape STRING

HTML escape STRING.

Package

mustache

Source

mustache.lisp (file)

Function: filename FILENAME
Package

mustache

Source

mustache.lisp (file)

Function: find-standalone-tag TOKENS
Package

mustache

Source

mustache.lisp (file)

Function: fold-text TOKENS
Package

mustache

Source

mustache.lisp (file)

Function: get-mustache-character CHAR
Package

mustache

Source

mustache.lisp (file)

Function: group-sections TOKENS &optional SECTIONS ACC
Package

mustache

Source

mustache.lisp (file)

Function: key TOKEN
Package

mustache

Source

mustache.lisp (file)

Function: locate-file FILENAME
Package

mustache

Source

mustache.lisp (file)

Function: make-context-chain DATA CONTEXT
Package

mustache

Source

mustache.lisp (file)

Function: make-section-tag START-TAG END-TAG TOKENS
Package

mustache

Source

mustache.lisp (file)

Function: make-tag &key STR ESCAPEP START END
Package

mustache

Source

mustache.lisp (file)

Function: newline-char-p CHAR
Package

mustache

Source

mustache.lisp (file)

Function: parse TEMPLATE
Package

mustache

Source

mustache.lisp (file)

Function: parse-key STRING
Package

mustache

Source

mustache.lisp (file)

Function: read-newline STRING START
Package

mustache

Source

mustache.lisp (file)

Function: read-partial FILENAME CONTEXT
Package

mustache

Source

mustache.lisp (file)

Function: read-tag STRING TRIPLEP START END
Package

mustache

Source

mustache.lisp (file)

Function: read-text TYPE STRING START END
Package

mustache

Source

mustache.lisp (file)

Function: read-token STRING START END
Package

mustache

Source

mustache.lisp (file)

Function: render-body TOKENS CONTEXT TEMPLATE
Package

mustache

Source

mustache.lisp (file)

Function: render-tokens TOKENS CONTEXT TEMPLATE
Package

mustache

Source

mustache.lisp (file)

Function: save-hash-table SOURCE
Package

mustache

Source

mustache.lisp (file)

Function: scan STRING &optional START END
Package

mustache

Source

mustache.lisp (file)

Function: set-mustache-character CHAR NEW-FUNCTION
Package

mustache

Source

mustache.lisp (file)

Function: space-char-p CHAR
Package

mustache

Source

mustache.lisp (file)

Function: string-starts-with-p PATTERN STRING START
Package

mustache

Source

mustache.lisp (file)

Function: text-char-p CHAR
Package

mustache

Source

mustache.lisp (file)

Function: tokens-standalone-p TOKENS
Package

mustache

Source

mustache.lisp (file)

Function: trim-standalone TOKENS
Package

mustache

Source

mustache.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Generic functions

Generic Function: close-delimiter OBJECT
Generic Function: (setf close-delimiter) NEW-VALUE OBJECT
Package

mustache

Methods
Method: close-delimiter (SECTION-START-TAG section-start-tag)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf close-delimiter) NEW-VALUE (SECTION-START-TAG section-start-tag)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: context-get KEY CONTEXT

Get data from CONTEXT by KEY.

Package

mustache

Source

mustache.lisp (file)

Methods
Method: context-get (KEY list) CONTEXT
Method: context-get (KEY (eql implicit-iterator)) CONTEXT
Method: context-get (KEY string) CONTEXT
Method: context-get (KEY string) (CONTEXT hash-table)
Method: context-get (KEY string) (CONTEXT null)
Generic Function: data OBJECT
Generic Function: (setf data) NEW-VALUE OBJECT
Package

mustache

Methods
Method: data (CONTEXT context)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf data) NEW-VALUE (CONTEXT context)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: deprecated-name CONDITION
Package

mustache

Methods
Method: deprecated-name (CONDITION deprecation-warning)
Source

compat-api-v1.lisp (file)

Generic Function: deprecated-name-replacement CONDITION
Package

mustache

Methods
Method: deprecated-name-replacement (CONDITION deprecation-warning)
Source

compat-api-v1.lisp (file)

Generic Function: deprecated-since CONDITION
Package

mustache

Methods
Method: deprecated-since (CONDITION deprecation-warning)
Source

compat-api-v1.lisp (file)

Generic Function: end OBJECT
Generic Function: (setf end) NEW-VALUE OBJECT
Package

mustache

Methods
Method: end (SECTION-START-TAG section-start-tag)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf end) NEW-VALUE (SECTION-START-TAG section-start-tag)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: escapep OBJECT
Package

mustache

Methods
Method: escapep (TAG tag)

automatically generated reader method

Source

mustache.lisp (file)

Generic Function: falsey OBJECT
Generic Function: (setf falsey) NEW-VALUE OBJECT
Package

mustache

Methods
Method: falsey (SECTION-START-TAG section-start-tag)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf falsey) NEW-VALUE (SECTION-START-TAG section-start-tag)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: indent OBJECT
Generic Function: (setf indent) NEW-VALUE OBJECT
Package

mustache

Methods
Method: indent (CONTEXT context)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf indent) NEW-VALUE (CONTEXT context)

automatically generated writer method

Source

mustache.lisp (file)

Method: indent (TAG tag)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf indent) NEW-VALUE (TAG tag)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: next OBJECT
Generic Function: (setf next) NEW-VALUE OBJECT
Package

mustache

Methods
Method: next (CONTEXT context)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf next) NEW-VALUE (CONTEXT context)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: open-delimiter OBJECT
Generic Function: (setf open-delimiter) NEW-VALUE OBJECT
Package

mustache

Methods
Method: open-delimiter (SECTION-START-TAG section-start-tag)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf open-delimiter) NEW-VALUE (SECTION-START-TAG section-start-tag)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: partials OBJECT
Generic Function: (setf partials) NEW-VALUE OBJECT
Package

mustache

Methods
Method: partials (CONTEXT context)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf partials) NEW-VALUE (CONTEXT context)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: print-data DATA ESCAPEP CONTEXT
Package

mustache

Source

mustache.lisp (file)

Methods
Method: print-data TOKEN ESCAPEP CONTEXT
Method: print-data (DATA function) ESCAPEP CONTEXT
Method: print-data (DATA symbol) ESCAPEP CONTEXT
Method: print-data (DATA string) ESCAPEP CONTEXT
Generic Function: render-token TOKEN CONTEXT TEMPLATE
Package

mustache

Source

mustache.lisp (file)

Methods
Method: render-token (TOKEN beginning-of-line) CONTEXT (TEMPLATE string)
Method: render-token (TOKEN section-tag) CONTEXT (TEMPLATE string)
Method: render-token (TOKEN partial-tag) CONTEXT (TEMPLATE string)
Method: render-token (TOKEN tag) CONTEXT (TEMPLATE string)
Method: render-token (TOKEN text) CONTEXT (TEMPLATE string)
Generic Function: start OBJECT
Generic Function: (setf start) NEW-VALUE OBJECT
Package

mustache

Methods
Method: start (SECTION-END-TAG section-end-tag)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf start) NEW-VALUE (SECTION-END-TAG section-end-tag)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: text OBJECT
Generic Function: (setf text) NEW-VALUE OBJECT
Package

mustache

Methods
Method: text (TAG tag)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf text) NEW-VALUE (TAG tag)

automatically generated writer method

Source

mustache.lisp (file)

Method: text (TEXT text)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf text) NEW-VALUE (TEXT text)

automatically generated writer method

Source

mustache.lisp (file)

Generic Function: tokens OBJECT
Generic Function: (setf tokens) NEW-VALUE OBJECT
Package

mustache

Methods
Method: tokens (SECTION-TAG section-tag)

automatically generated reader method

Source

mustache.lisp (file)

Method: (setf tokens) NEW-VALUE (SECTION-TAG section-tag)

automatically generated writer method

Source

mustache.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.5 Conditions

Condition: deprecation-warning ()
Package

mustache

Source

compat-api-v1.lisp (file)

Direct superclasses

style-warning (condition)

Direct methods
Direct slots
Slot: name
Initargs

:name

Readers

deprecated-name (generic function)

Slot: replacements
Initargs

:replacement

Readers

deprecated-name-replacement (generic function)

Slot: since
Initargs

:since

Readers

deprecated-since (generic function)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.6 Classes

Class: ampersand-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

non-standalone-tag (class)

Direct slots
Slot: %escapep
Class: beginning-of-line ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

token (class)

Direct methods

render-token (method)

Class: can-standalone-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

tag (class)

Direct subclasses
Class: comment-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

can-standalone-tag (class)

Class: context ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
  • next (method)
  • next (method)
  • partials (method)
  • partials (method)
  • indent (method)
  • indent (method)
  • data (method)
  • data (method)
Direct slots
Slot: %data
Initargs

:data

Readers

data (generic function)

Writers

(setf data) (generic function)

Slot: %indent
Type

list

Initargs

:indent

Readers

indent (generic function)

Writers

(setf indent) (generic function)

Slot: %partials
Initargs

:partials

Readers

partials (generic function)

Writers

(setf partials) (generic function)

Slot: %next
Type

(or null mustache::context)

Initargs

:next

Readers

next (generic function)

Writers

(setf next) (generic function)

Class: crlf-newline ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

newline (class)

Direct slots
Slot: %text
Initform

mustache::crlf

Class: delimiter-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

can-standalone-tag (class)

Class: newline ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

text (class)

Direct subclasses

crlf-newline (class)

Direct slots
Slot: %text
Initform

" "

Class: non-standalone-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

tag (class)

Direct subclasses
Class: normal-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

non-standalone-tag (class)

Class: partial-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

can-standalone-tag (class)

Direct methods

render-token (method)

Class: section-end-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

can-standalone-tag (class)

Direct subclasses

section-tag (class)

Direct methods
  • start (method)
  • start (method)
Direct slots
Slot: %start
Type

mustache::offset

Initargs

:start

Initform

0

Readers

start (generic function)

Writers

(setf start) (generic function)

Class: section-start-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

can-standalone-tag (class)

Direct subclasses

section-tag (class)

Direct methods
Direct slots
Slot: %falsey
Type

boolean

Initargs

:falsey

Readers

falsey (generic function)

Writers

(setf falsey) (generic function)

Slot: %end
Type

mustache::offset

Initargs

:end

Initform

0

Readers

end (generic function)

Writers

(setf end) (generic function)

Slot: %open-delimiter
Type

string

Initargs

:open-delimiter

Initform

""

Readers

open-delimiter (generic function)

Writers

(setf open-delimiter) (generic function)

Slot: %close-delimiter
Type

string

Initargs

:close-delimiter

Initform

""

Readers

close-delimiter (generic function)

Writers

(setf close-delimiter) (generic function)

Class: section-tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses
Direct methods
Direct slots
Slot: %tokens
Type

list

Initargs

:tokens

Readers

tokens (generic function)

Writers

(setf tokens) (generic function)

Class: tag ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

token (class)

Direct subclasses
Direct methods
Direct slots
Slot: %text
Type

string

Initargs

:text

Readers

text (generic function)

Writers

(setf text) (generic function)

Slot: %escapep
Type

boolean

Initargs

:escape

Initform

t

Readers

escapep (generic function)

Slot: %indent
Type

list

Initargs

:indent

Readers

indent (generic function)

Writers

(setf indent) (generic function)

Class: text ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

token (class)

Direct subclasses
Direct methods
Direct slots
Slot: %text
Type

string

Initargs

:text

Readers

text (generic function)

Writers

(setf text) (generic function)

Class: token ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses
Class: whitespace ()
Package

mustache

Source

mustache.lisp (file)

Direct superclasses

text (class)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.7 Types

Type: alist ()
Package

mustache

Source

mustache.lisp (file)

Type: newline-char ()
Package

mustache

Source

mustache.lisp (file)

Type: offset ()

File or string offset.

Package

mustache

Source

mustache.lisp (file)

Type: space-char ()
Package

mustache

Source

mustache.lisp (file)

Type: text-char ()
Package

mustache

Source

mustache.lisp (file)

Type: text-token ()
Package

mustache

Source

mustache.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   C   F   L  
Index Entry  Section

C
cl-mustache.asd: The cl-mustache<dot>asd file
cl-mustache/compat-api-v1.lisp: The cl-mustache/compat-api-v1<dot>lisp file
cl-mustache/mustache.lisp: The cl-mustache/mustache<dot>lisp file
cl-mustache/packages.lisp: The cl-mustache/packages<dot>lisp file

F
File, Lisp, cl-mustache.asd: The cl-mustache<dot>asd file
File, Lisp, cl-mustache/compat-api-v1.lisp: The cl-mustache/compat-api-v1<dot>lisp file
File, Lisp, cl-mustache/mustache.lisp: The cl-mustache/mustache<dot>lisp file
File, Lisp, cl-mustache/packages.lisp: The cl-mustache/packages<dot>lisp file

L
Lisp File, cl-mustache.asd: The cl-mustache<dot>asd file
Lisp File, cl-mustache/compat-api-v1.lisp: The cl-mustache/compat-api-v1<dot>lisp file
Lisp File, cl-mustache/mustache.lisp: The cl-mustache/mustache<dot>lisp file
Lisp File, cl-mustache/packages.lisp: The cl-mustache/packages<dot>lisp file

Jump to:   C   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   %   (  
C   D   E   F   G   I   K   L   M   N   O   P   R   S   T   V  
Index Entry  Section

%
%output: Internal functions

(
(setf close-delimiter): Internal generic functions
(setf close-delimiter): Internal generic functions
(setf data): Internal generic functions
(setf data): Internal generic functions
(setf end): Internal generic functions
(setf end): Internal generic functions
(setf falsey): Internal generic functions
(setf falsey): Internal generic functions
(setf indent): Internal generic functions
(setf indent): Internal generic functions
(setf indent): Internal generic functions
(setf next): Internal generic functions
(setf next): Internal generic functions
(setf open-delimiter): Internal generic functions
(setf open-delimiter): Internal generic functions
(setf partials): Internal generic functions
(setf partials): Internal generic functions
(setf start): Internal generic functions
(setf start): Internal generic functions
(setf text): Internal generic functions
(setf text): Internal generic functions
(setf text): Internal generic functions
(setf tokens): Internal generic functions
(setf tokens): Internal generic functions

C
call-lambda: Internal functions
change-delimiter: Internal functions
close-delimiter: Internal generic functions
close-delimiter: Internal generic functions
collect-line: Internal functions
compile-template: Exported generic functions
compile-template: Exported generic functions
compile-template: Exported generic functions
context-get: Internal generic functions
context-get: Internal generic functions
context-get: Internal generic functions
context-get: Internal generic functions
context-get: Internal generic functions
context-get: Internal generic functions

D
data: Internal generic functions
data: Internal generic functions
define: Exported macros
define-mustache-character: Internal macros
defmustache: Exported macros
deprecated-name: Internal generic functions
deprecated-name: Internal generic functions
deprecated-name-replacement: Internal generic functions
deprecated-name-replacement: Internal generic functions
deprecated-since: Internal generic functions
deprecated-since: Internal generic functions

E
end: Internal generic functions
end: Internal generic functions
ensure-context: Internal functions
escape: Internal functions
escapep: Internal generic functions
escapep: Internal generic functions

F
falsey: Internal generic functions
falsey: Internal generic functions
filename: Internal functions
find-standalone-tag: Internal functions
fold-text: Internal functions
Function, %output: Internal functions
Function, call-lambda: Internal functions
Function, change-delimiter: Internal functions
Function, collect-line: Internal functions
Function, ensure-context: Internal functions
Function, escape: Internal functions
Function, filename: Internal functions
Function, find-standalone-tag: Internal functions
Function, fold-text: Internal functions
Function, get-mustache-character: Internal functions
Function, group-sections: Internal functions
Function, key: Internal functions
Function, locate-file: Internal functions
Function, make-context: Exported functions
Function, make-context-chain: Internal functions
Function, make-section-tag: Internal functions
Function, make-tag: Internal functions
Function, mustache-compile: Exported functions
Function, mustache-context: Exported functions
Function, mustache-render: Exported functions
Function, mustache-render-to-stream: Exported functions
Function, mustache-render-to-string: Exported functions
Function, mustache-type: Exported functions
Function, mustache-version: Exported functions
Function, newline-char-p: Internal functions
Function, parse: Internal functions
Function, parse-key: Internal functions
Function, read-newline: Internal functions
Function, read-partial: Internal functions
Function, read-tag: Internal functions
Function, read-text: Internal functions
Function, read-token: Internal functions
Function, render*: Exported functions
Function, render-body: Internal functions
Function, render-tokens: Internal functions
Function, save-hash-table: Internal functions
Function, scan: Internal functions
Function, set-mustache-character: Internal functions
Function, space-char-p: Internal functions
Function, string-starts-with-p: Internal functions
Function, text-char-p: Internal functions
Function, tokens-standalone-p: Internal functions
Function, trim-standalone: Internal functions
Function, version: Exported functions

G
Generic Function, (setf close-delimiter): Internal generic functions
Generic Function, (setf data): Internal generic functions
Generic Function, (setf end): Internal generic functions
Generic Function, (setf falsey): Internal generic functions
Generic Function, (setf indent): Internal generic functions
Generic Function, (setf next): Internal generic functions
Generic Function, (setf open-delimiter): Internal generic functions
Generic Function, (setf partials): Internal generic functions
Generic Function, (setf start): Internal generic functions
Generic Function, (setf text): Internal generic functions
Generic Function, (setf tokens): Internal generic functions
Generic Function, close-delimiter: Internal generic functions
Generic Function, compile-template: Exported generic functions
Generic Function, context-get: Internal generic functions
Generic Function, data: Internal generic functions
Generic Function, deprecated-name: Internal generic functions
Generic Function, deprecated-name-replacement: Internal generic functions
Generic Function, deprecated-since: Internal generic functions
Generic Function, end: Internal generic functions
Generic Function, escapep: Internal generic functions
Generic Function, falsey: Internal generic functions
Generic Function, indent: Internal generic functions
Generic Function, next: Internal generic functions
Generic Function, open-delimiter: Internal generic functions
Generic Function, partials: Internal generic functions
Generic Function, print-data: Internal generic functions
Generic Function, render: Exported generic functions
Generic Function, render-token: Internal generic functions
Generic Function, start: Internal generic functions
Generic Function, text: Internal generic functions
Generic Function, tokens: Internal generic functions
get-mustache-character: Internal functions
group-sections: Internal functions

I
indent: Internal generic functions
indent: Internal generic functions
indent: Internal generic functions

K
key: Internal functions

L
locate-file: Internal functions

M
Macro, define: Exported macros
Macro, define-mustache-character: Internal macros
Macro, defmustache: Exported macros
Macro, make-obsolete: Internal macros
make-context: Exported functions
make-context-chain: Internal functions
make-obsolete: Internal macros
make-section-tag: Internal functions
make-tag: Internal functions
Method, (setf close-delimiter): Internal generic functions
Method, (setf data): Internal generic functions
Method, (setf end): Internal generic functions
Method, (setf falsey): Internal generic functions
Method, (setf indent): Internal generic functions
Method, (setf indent): Internal generic functions
Method, (setf next): Internal generic functions
Method, (setf open-delimiter): Internal generic functions
Method, (setf partials): Internal generic functions
Method, (setf start): Internal generic functions
Method, (setf text): Internal generic functions
Method, (setf text): Internal generic functions
Method, (setf tokens): Internal generic functions
Method, close-delimiter: Internal generic functions
Method, compile-template: Exported generic functions
Method, compile-template: Exported generic functions
Method, context-get: Internal generic functions
Method, context-get: Internal generic functions
Method, context-get: Internal generic functions
Method, context-get: Internal generic functions
Method, context-get: Internal generic functions
Method, data: Internal generic functions
Method, deprecated-name: Internal generic functions
Method, deprecated-name-replacement: Internal generic functions
Method, deprecated-since: Internal generic functions
Method, end: Internal generic functions
Method, escapep: Internal generic functions
Method, falsey: Internal generic functions
Method, indent: Internal generic functions
Method, indent: Internal generic functions
Method, next: Internal generic functions
Method, open-delimiter: Internal generic functions
Method, partials: Internal generic functions
Method, print-data: Internal generic functions
Method, print-data: Internal generic functions
Method, print-data: Internal generic functions
Method, print-data: Internal generic functions
Method, render: Exported generic functions
Method, render: Exported generic functions
Method, render-token: Internal generic functions
Method, render-token: Internal generic functions
Method, render-token: Internal generic functions
Method, render-token: Internal generic functions
Method, render-token: Internal generic functions
Method, start: Internal generic functions
Method, text: Internal generic functions
Method, text: Internal generic functions
Method, tokens: Internal generic functions
mustache-compile: Exported functions
mustache-context: Exported functions
mustache-render: Exported functions
mustache-render-to-stream: Exported functions
mustache-render-to-string: Exported functions
mustache-type: Exported functions
mustache-version: Exported functions

N
newline-char-p: Internal functions
next: Internal generic functions
next: Internal generic functions

O
open-delimiter: Internal generic functions
open-delimiter: Internal generic functions

P
parse: Internal functions
parse-key: Internal functions
partials: Internal generic functions
partials: Internal generic functions
print-data: Internal generic functions
print-data: Internal generic functions
print-data: Internal generic functions
print-data: Internal generic functions
print-data: Internal generic functions

R
read-newline: Internal functions
read-partial: Internal functions
read-tag: Internal functions
read-text: Internal functions
read-token: Internal functions
render: Exported generic functions
render: Exported generic functions
render: Exported generic functions
render*: Exported functions
render-body: Internal functions
render-token: Internal generic functions
render-token: Internal generic functions
render-token: Internal generic functions
render-token: Internal generic functions
render-token: Internal generic functions
render-token: Internal generic functions
render-tokens: Internal functions

S
save-hash-table: Internal functions
scan: Internal functions
set-mustache-character: Internal functions
space-char-p: Internal functions
start: Internal generic functions
start: Internal generic functions
string-starts-with-p: Internal functions

T
text: Internal generic functions
text: Internal generic functions
text: Internal generic functions
text-char-p: Internal functions
tokens: Internal generic functions
tokens: Internal generic functions
tokens-standalone-p: Internal functions
trim-standalone: Internal functions

V
version: Exported functions

Jump to:   %   (  
C   D   E   F   G   I   K   L   M   N   O   P   R   S   T   V  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   %   *  
B   C   N   R   S  
Index Entry  Section

%
%close-delimiter: Internal classes
%data: Internal classes
%end: Internal classes
%escapep: Internal classes
%escapep: Internal classes
%falsey: Internal classes
%indent: Internal classes
%indent: Internal classes
%next: Internal classes
%open-delimiter: Internal classes
%partials: Internal classes
%start: Internal classes
%text: Internal classes
%text: Internal classes
%text: Internal classes
%text: Internal classes
%tokens: Internal classes

*
*close-delimiter*: Internal special variables
*context*: Exported special variables
*default-close-delimiter*: Internal special variables
*default-open-delimiter*: Internal special variables
*default-pathname-type*: Exported special variables
*default-triple-close-delimiter*: Internal special variables
*default-triple-open-delimiter*: Internal special variables
*load-path*: Exported special variables
*mustache-output*: Exported special variables
*mustache-tag-table*: Internal special variables
*open-delimiter*: Internal special variables
*output-stream*: Exported special variables
*real-standard-output*: Internal special variables
*triple-close-delimiter*: Internal special variables
*triple-open-delimiter*: Internal special variables

B
beginning-of-line: Internal special variables

C
crlf: Internal special variables
crlf-newline: Internal special variables

N
name: Internal conditions
newline: Internal special variables

R
replacements: Internal conditions

S
since: Internal conditions
Slot, %close-delimiter: Internal classes
Slot, %data: Internal classes
Slot, %end: Internal classes
Slot, %escapep: Internal classes
Slot, %escapep: Internal classes
Slot, %falsey: Internal classes
Slot, %indent: Internal classes
Slot, %indent: Internal classes
Slot, %next: Internal classes
Slot, %open-delimiter: Internal classes
Slot, %partials: Internal classes
Slot, %start: Internal classes
Slot, %text: Internal classes
Slot, %text: Internal classes
Slot, %text: Internal classes
Slot, %text: Internal classes
Slot, %tokens: Internal classes
Slot, name: Internal conditions
Slot, replacements: Internal conditions
Slot, since: Internal conditions
Special Variable, *close-delimiter*: Internal special variables
Special Variable, *context*: Exported special variables
Special Variable, *default-close-delimiter*: Internal special variables
Special Variable, *default-open-delimiter*: Internal special variables
Special Variable, *default-pathname-type*: Exported special variables
Special Variable, *default-triple-close-delimiter*: Internal special variables
Special Variable, *default-triple-open-delimiter*: Internal special variables
Special Variable, *load-path*: Exported special variables
Special Variable, *mustache-output*: Exported special variables
Special Variable, *mustache-tag-table*: Internal special variables
Special Variable, *open-delimiter*: Internal special variables
Special Variable, *output-stream*: Exported special variables
Special Variable, *real-standard-output*: Internal special variables
Special Variable, *triple-close-delimiter*: Internal special variables
Special Variable, *triple-open-delimiter*: Internal special variables
Special Variable, beginning-of-line: Internal special variables
Special Variable, crlf: Internal special variables
Special Variable, crlf-newline: Internal special variables
Special Variable, newline: Internal special variables

Jump to:   %   *  
B   C   N   R   S  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   A   B   C   D   M   N   O   P   S   T   W  
Index Entry  Section

A
alist: Internal types
ampersand-tag: Internal classes

B
beginning-of-line: Internal classes

C
can-standalone-tag: Internal classes
cl-mustache: The cl-mustache system
Class, ampersand-tag: Internal classes
Class, beginning-of-line: Internal classes
Class, can-standalone-tag: Internal classes
Class, comment-tag: Internal classes
Class, context: Internal classes
Class, crlf-newline: Internal classes
Class, delimiter-tag: Internal classes
Class, newline: Internal classes
Class, non-standalone-tag: Internal classes
Class, normal-tag: Internal classes
Class, partial-tag: Internal classes
Class, section-end-tag: Internal classes
Class, section-start-tag: Internal classes
Class, section-tag: Internal classes
Class, tag: Internal classes
Class, text: Internal classes
Class, token: Internal classes
Class, whitespace: Internal classes
comment-tag: Internal classes
Condition, deprecation-warning: Internal conditions
context: Internal classes
crlf-newline: Internal classes

D
delimiter-tag: Internal classes
deprecation-warning: Internal conditions

M
mustache: The mustache package

N
newline: Internal classes
newline-char: Internal types
non-standalone-tag: Internal classes
normal-tag: Internal classes

O
offset: Internal types

P
Package, mustache: The mustache package
partial-tag: Internal classes

S
section-end-tag: Internal classes
section-start-tag: Internal classes
section-tag: Internal classes
space-char: Internal types
System, cl-mustache: The cl-mustache system

T
tag: Internal classes
text: Internal classes
text-char: Internal types
text-token: Internal types
token: Internal classes
Type, alist: Internal types
Type, newline-char: Internal types
Type, offset: Internal types
Type, space-char: Internal types
Type, text-char: Internal types
Type, text-token: Internal types

W
whitespace: Internal classes

Jump to:   A   B   C   D   M   N   O   P   S   T   W