[Opa] newbie question
Adam.Koprowski at mlstate.com
Thu Nov 17 07:24:09 EST 2011
On Tue, Nov 15, 2011 at 15:33, Johannes Erber <Hannes_E at gmx.de> wrote:
> While this topic is once on the plate: Is there anything like variable
> interpolation in Opa's template system or can templates just be used as
> static program parts? Haven't seen templates being used much in Opa
> applications so far...
As far as I know there are no variables of any kind in the Templates --
there was a plan to add meta-variables of kind, but I'm not aware of this
plan ever being carried out.
However, templates support extension mechanism, which allows adding new
tags, with custom interpretations. This plus the ability to customize the
interpretation of those tags on their (XML) children tags, gives almost
unlimited possibilities. It's also not quite true they are not used --
opalang.org is completely build using templates :).
*Adam Koprowski [http://adam-koprowski.net]
Opa Tech Evangelist @ MLstate [http://opalang.org | http://mlstate.com]*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Opa