Modules
ADT Database GTK2 GUI IP PiJAX Public Sql Stdio Subversion System Tools Xosd lua v4l2 wx
Recent Changes
Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0
Popular Downloads
Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48
|
Pike Module Reference: module version 1, prepared
MODULE Public.Template.Mustache |
Modules Template
|
|
CLASS Public.Template.Mustache.Template.Mustache |
Methods to_html()
|
- Description
An implementation of the Mustache template format
- Note
the current implementation is not thread safe. Please use
a separate instance if the Mustache object for each rendering attempt.
- Note
by default, missing values (as opposed to "false" values such as zero)
will result in an empty string being inserted in the resulting output.
- Note
this module requires Regexp.PCRE
-
Method to_html
mixed Public.Template.Mustache.Template.Mustache()->to_html(string template, mapping view, mapping|void partials, function|void send_fun)
- Description
Turns a template and view into HTML
|
CLASS Public.Template.Mustache.Template.PCRERegexp |
Methods create() replace()
|
- Description
A PCRE based Regular expression string replacer.
-
Method create
void Public.Template.Mustache.Template.PCRERegexp()->create(string match)
-
Method replace
string Public.Template.Mustache.Template.PCRERegexp()->replace(string subject, string|function with, mixed|void ... args)
- Description
if with is a function, the first argument will be the total match
string, and the second argument will be an array of submatches
|
|