For MUCH more information, visit http://kirbysayshi.com/2012/08/30/mini-micro-pico-vash.html
Mini supports stuff like:
@it.Do
@it.realize()
And knows the difference between
"@it.everyone[0]" // quotes are content
"@it.everyone("param")" // inner quotes are expression, outer quotes content
"@it.everyone('param').go" // as deep as it needs!
@it.model. // last period is content, not expression
@it.model[] // brackets are empty, invalid property index, thus are content!
Mini supports explicit expressions ( arbitrary JS that returns a value for output )
@( it.what === false ? 'yeah' : 'what' )
@( (it.what === true) ? 'explicit' : "bad" ) // any number of nested parenthesis
@( it.func() && it.another.property )
If a literal @ is needed, then just double it up:
This is a literal @@.
// outputs: This is a literal @.
Finally, if a model passed to the compiled function is an array, the template will be called with each element of the array as the model, and the total output returned. Implicit iteration!
Pico only supports simple @property.something expressions of arbitrary depth, and does not HTML encode.
A few silly jsperfs: