FactDev
0.1
|
Public Member Functions | |
CounterContext (const QVariantHash &map) | |
virtual bool | canEval (const QString &key) const |
virtual QString | eval (const QString &key, const QString &_template, Mustache::Renderer *renderer) |
virtual QString | stringValue (const QString &key) const |
CounterContext (const QVariantHash &map) | |
virtual bool | canEval (const QString &key) const |
virtual QString | eval (const QString &key, const QString &_template, Mustache::Renderer *renderer) |
virtual QString | stringValue (const QString &key) const |
Public Member Functions inherited from Mustache::QtVariantContext | |
QtVariantContext (const QVariant &root, PartialResolver *resolver=0) | |
virtual bool | isFalse (const QString &key) const |
virtual int | listCount (const QString &key) const |
virtual void | push (const QString &key, int index=-1) |
virtual void | pop () |
Public Member Functions inherited from Mustache::Context | |
Context (PartialResolver *resolver=0) | |
QString | partialValue (const QString &key) const |
PartialResolver * | partialResolver () const |
Public Attributes | |
int | counter |
Additional Inherited Members | |
Public Types inherited from Mustache::QtVariantContext | |
typedef QString(* | fn_t )(const QString &, Mustache::Renderer *, Mustache::Context *) |
|
inlinevirtual |
Returns true if eval() should be used to render section tags using key
. If canEval() returns true for a key, the renderer will pass the literal, unrendered block of text for the section to eval() and replace the section with the result.
canEval() and eval() are equivalents for callable objects (eg. lambdas) in other Mustache implementations.
The default implementation always returns false.
Reimplemented from Mustache::QtVariantContext.
|
inlinevirtual |
Returns true if eval() should be used to render section tags using key
. If canEval() returns true for a key, the renderer will pass the literal, unrendered block of text for the section to eval() and replace the section with the result.
canEval() and eval() are equivalents for callable objects (eg. lambdas) in other Mustache implementations.
The default implementation always returns false.
Reimplemented from Mustache::QtVariantContext.
|
inlinevirtual |
Callback used to render a template section with the given key
. renderer
will substitute the original section tag with the result of eval().
The default implementation returns an empty string.
Reimplemented from Mustache::QtVariantContext.
|
inlinevirtual |
Callback used to render a template section with the given key
. renderer
will substitute the original section tag with the result of eval().
The default implementation returns an empty string.
Reimplemented from Mustache::QtVariantContext.
|
inlinevirtual |
Returns a string representation of the value for key
in the current context. This is used to replace a Mustache value tag.
Reimplemented from Mustache::QtVariantContext.
|
inlinevirtual |
Returns a string representation of the value for key
in the current context. This is used to replace a Mustache value tag.
Reimplemented from Mustache::QtVariantContext.