Roxen.git / server / etc / modules / Mustache.pike

version» Context lines:

Roxen.git/server/etc/modules/Mustache.pike:231: Inside #if defined(MUSTACHE_DEBUG)
   protected void destroy()    {    TRACE("Scanner destroyed!\n");    }   #endif   }         //! A @[Token] is an array like object with at least 4 elements. The first   //! element is the mustache symbol that was used inside the tag, e.g. "#" or - //! "&". If the tag did not contain a symbol (i.e. @code{{{myValue}}@}) this + //! "&". If the tag did not contain a symbol (i.e. @tt{{{myValue}}@}) this   //! element is "name". For all text that appears outside a symbol this element   //! is "text".   //!   //! The second element of a token is its "value". For mustache tags this is   //! whatever else was inside the tag besides the opening symbol. For text tokens   //! this is the text itself.   //!   //! The third and fourth elements of the token are the start and end indices,   //! respectively, of the token in the original template.   //!
Roxen.git/server/etc/modules/Mustache.pike:314: Inside #if defined(MUSTACHE_DEBUG)
   protected void destroy()    {    TRACE("Token destroyed!\n");    }   #endif   }      //! Breaks up the given @[template] string into a tree of tokens. If the   //! @[_tags] argument is given here it must be an array with two string values:   //! the opening and closing tags used in the template (e.g. - //! @code{[ "<%", "%>" ]@}). Of course, the default is to use mustaches + //! @tt{[ "<%", "%>" ]@}). Of course, the default is to use mustaches   //! (i.e. mustache.tags).   array(Token) parse_template(string|function template, void|array(string) _tags)   {    if (functionp(template)) {    template = (string)template(0);    }       if (!template || !sizeof(template)) {    return ({});    }